primitives · @awesome-ds/react
Link
Semantic navigation link styled with accent.
State matrix
idle
hover
focus
visited
Anatomy
- anchor
- link text
- optional external cue
Keyboard contract
Tab focuses; Enter follows the href using native anchor behavior.
Screen-reader contract
Announces as a link with meaningful destination text.
Content rules
- Name the destination.
- Avoid bare URLs and vague read-more labels.
Public API
| Prop | Type | required | Description |
|---|---|---|---|
href | string | required | Navigation destination |
children | ReactNode | required | Destination label |
…native | Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "href"> | — | Native anchor attributes |
Adaptation contracts
- RTL
- Preserve icon meaning, use logical spacing, and mirror only directional artwork.
- High contrast
- Keep native outlines and a visible text or border affordance in forced colors.
- Reduced motion
- Remove hover travel and loading flourish while retaining immediate state feedback.
Verification IDs
Live
Live
Open AtlasCopyable example
import { Link } from "@awesome-ds/react";
<Link href="/references">Atlas</Link>