astro/.changeset/fresh-pots-draw.md
Matthew Phillips 2167ffd72f
Revert "[ci] release (#8671)" (#8696)
This reverts commit eada8ab8fa.
2023-09-28 13:57:54 -04:00

412 B

astro
minor

View transitions can now be triggered from JavaScript!

Import the client-side router from "astro:transitions/client" and enjoy your new remote control for navigation:

import { navigate } from 'astro:transitions/client';

// Navigate to the selected option automatically.
document.querySelector('select').onchange = (ev) => {
  let href = ev.target.value;
  navigate(href);
};