Skip to main content
Version: 3.0.0

Link Component

Import the Link component and use it as a drop-in replacement for links.

---
import Link from "astro-typesafe-routes/link";
---

<Link to="/blog/[id]" params={{ id: "4" }}>Blog post</Link>