Root Props
| Prop | Type | Default |
|---|---|---|
asChild | boolean | — |
Renders the link as a child component using a Slot (e.g., Radix UI asChild). Useful for composing links with routing libraries like Next.js (<Link>) or react-router. | ||
ref | Ref<HTMLAnchorElement> | — |
Ref to the underlying anchor (<a>) element. Useful for DOM access, focus control, or measurement. | ||
Also accepts all <a> attributes.
Child Parts
Link does not expose public child parts.
Types
LinkProps
State Model
Linkis stateless from the component API perspective.asChildlets the consumer preserve link styling while delegating rendering to another link-like component.