Link Controls
Style links, named icon controls and keyboard shortcuts without changing native behavior.
Usage
Use ButtonLink for navigation, IconButton for an action, and IconLink or PlatformLink for a named icon destination. Supply href and localization yourself.
Accessibility
Name each icon-only control, hide decorative icons, and use Kbd for shortcuts. Platform hover respects reduced motion.
| Property | Type | Default |
|---|---|---|
| href (links) | string | Required |
| aria-label / aria-labelledby (icon controls) | string | Required |
| platform | github | npm | Required |
| variant | primary | secondary | ghost | Native defaults |
| size | sm | md | md |
<>
<ButtonLink href="#/link-controls">Read guide</ButtonLink>
<IconButton aria-label="Open search example"><span aria-hidden="true">⌕</span></IconButton>
<IconLink href="#/link-controls" aria-label="Open reference example"><span aria-hidden="true">↗</span></IconLink>
<PlatformLinks role="group" aria-label="Platform links">
<PlatformLink platform="github" href="#/link-controls" aria-label="GitHub example" />
<PlatformLink platform="npm" href="#/link-controls" aria-label="npm example" />
</PlatformLinks>
<Kbd>Ctrl K</Kbd>
</>