Link
A styled anchor element for navigation. Supports external links with automatic target/rel attributes.
ARIA: role="link"Typography
link.rs
use stratum_leptos::*;
view! {
<Link href="/docs">"Internal link"</Link>
<Link href="https://github.com" external=true>
"External link"
</Link>
<Link href="/about" variant=LinkVariant::Subtle>
"Subtle link"
</Link>
}Installation
stratum add linkProps
| Prop | Type | Default | Description |
|---|---|---|---|
| href | String | required | URL destination |
| external | bool | false | If true, adds target="_blank" and rel="noopener noreferrer" |
| variant | LinkVariant | Default | Visual style: Default (underlined), Subtle (no underline) |