Skip to main content

Icon

Atombeta@macaw-ds/icons · since 0.1.0

Renders one icon from the curated set, bound to size and tone tokens. Not for logos or illustrations.

Contract

From the manifest's a11y block: what assistive technology sees, and every key the component handles.

Role
img when label is set; otherwise none (aria-hidden)
Focusable
No. Interactive children keep their own focus.
Accessible name
From the label prop. Decorative icons have no name and are hidden from assistive technology.
Notes
  • Never rely on an icon alone to convey status; pair it with text or a Badge.
  • Status tones meet 3:1 against surface.default in both themes.
Keyboard
KeysBehaviour

Not interactive; no keyboard handling.

Motion

This component does not animate or transition, so there is nothing to reduce.

Contrast

Computed at build time from the token values, against the background each colour is paired with.

TokenOnLightDark
fg.primarysurface.layer-119.67:1 AAA18.84:1 AAA
fg.secondarysurface.layer-110.00:1 AAA13.28:1 AAA
fg.mutedsurface.layer-16.53:1 AA6.33:1 AA
status.successsurface.layer-15.62:1 AA7.27:1 AAA
status.warningsurface.layer-14.13:1 AA-large8.58:1 AAA
status.criticalsurface.layer-15.85:1 AA6.30:1 AA
status.infosurface.layer-15.35:1 AA7.01:1 AAA
status.accentsurface.layer-16.00:1 AA6.72:1 AA