Link
Navigation
Takes a block
Client-side navigation link; its label or its block is the link text.
Link(label, to: …, active: …) { … }
Example
Link("About us", to: "/about")
Link("Guide", to: "/docs", active: .prefix)
Link(to: "https://example.com", target: "_blank") { Text("Example") }
Renders with the class wf-link, stable across releases, so a stylesheet may target it.
| Prop | Type | Meaning |
|---|---|---|
| label | String (positional) |
The link text |
| to: | Path |
Route to navigate to; the link whose |
| active: | .prefix |
How the link decides it is the current one |
Attribute families: global, aria, data, anchor. Plus the universal props on every element: animate:, exit:, speed:, class:, ref:.
On this entry
Generated, not written
This page comes from the compiler's registry. Edit the registry, not the page — a prop added there shows up here on the next release.
wf registry --json