A styled anchor element for navigating between pages or external URLs. Supports size, color, and the asChild composition pattern.
import Link from "@radui/ui/Link"- A native anchor with the theme's link styling, sizes and colours
- asChild wraps a router link so client-side navigation keeps the styling
- External links can carry rel and target like any anchor
| Shortcut | Description |
|---|---|
| Tab | Moves focus to the next focusable element in document focus order. |
| Enter | Activates the focused link and follows its href. |
| Reference | What Rad UI follows |
|---|---|
| Link pattern | Uses native anchor semantics by default, with href carrying the destination and Enter providing keyboard activation. |
Import all parts of the component and piece them together.
A styled anchor element.
| Prop | Type | Default |
|---|---|---|
href | string | "#" |
size | string | "" |
color | string | "" |
asChild | boolean | false |
customRootClass | string | "" |