Oddmash UI
All components

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.

PropertyTypeDefault
href (links)stringRequired
aria-label / aria-labelledby (icon controls)stringRequired
platformgithub | npmRequired
variantprimary | secondary | ghostNative defaults
sizesm | mdmd
<>
  <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>
</>

Interactive documentation