Component
A styled anchor element for navigating between pages or external URLs. Supports size, color, and the asChild composition pattern.
View component changelog| 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 |
|---|---|
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 | "" |