Elements Link
Back to Elements

Link

0 components

UI elements you can copy into your project.

API reference

Generated from each primitive's $props() declaration.

link

Styled hyperlink.

Prop Type Default Description
ref bind: HTMLElement | null null
href
class as className string
variant "default" | "muted" | "subtle" | "nav" | "button" "default"
underline "always" | "hover" | "none" "hover"
external boolean false
showIcon boolean false
children Snippet
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.