Skip to content

Web Standards

You can use adaptive hyperlinks with href() and adaptive forms with action().

<script lang="ts">
import { href } from "$lib/utilities/scripts/href.ts"
</script>
<a {...href("/some-other-page")}> Go to some other page </a>

When JavaScript is disabled, these hyperlinks and forms are converted into traditional HTML hyperlinks and forms, but when JavaScript is enabled, they swap the client’s view dynamically without reloading the page, triggering your transition animations and updating your application state.