Components
Components
Link
Accessible navigation link with accent, muted, and underline variants.
newfree
Install
@hewnui/ui · hewnui
Styled React Aria Link for in-app and external navigation. Prefer Link over raw anchors so focus, press, and disabled states stay consistent with the rest of the system.
Disabled trail
Usage
Pass href for navigation. For external destinations, React Aria still owns
keyboard and focus behavior; add target / rel only when you need them.
Variants
accent (default), muted, and underline.
States
- Hover / press — color shift and press scale when motion is on
- Focus — visible ring using semantic
--kp-ring - Disabled — set
isDisabledto block navigation and mute the style
Keyboard
Tabmoves focus to the linkEnteractivates navigation- Disabled links are removed from the tab order
Accessibility
- Native link semantics from React Aria
- Press scale feedback does not replace a clear focus ring
- Disabled state exposes
aria-disabledand prevents activation - Prefer descriptive link text over “click here”
API reference
Props for Link from @hewnui/ui/link. Generated from component types — not hand-written.
Prop
Type