next/link — prefetch and SPA navigation
bext intercepts every same-origin <a> click for SPA navigation and prefetches the destination on hover. There's no separate <Link> component in idiomatic bext code. The @bext-stack/framework/next/link shim exists for Next.js codebases mid-migration — it renders an identical <a>.
Tip
Prefetch fires on pointerenter and caches the result for the click — navigation feels instant even on mobile. To opt a single link out of prefetching, add data-no-prefetch on the <a> element.
Try it (open Network panel first)
Hover each link → a prefetch request fires. Click → the page swaps without a full document reload.
// In bext/PRISM: plain <a href> IS the Link.
<a href="/examples/items">Items index</a>
// next/link migration shim — identical behaviour, React-style import.
import Link from "@bext-stack/framework/next/link";
<Link href="/examples/items">Items index</Link>