Components
Icon button
Icon button
Compact icon-only button for inline affordances — edit pencils on detail cards, X close on modal headers, dropdown triggers on tables. Two semantic colours: Neutral (the default for non-destructive actions) and Danger (for delete / archive / cancel).
Canonical
Pair every icon button with aria-label — the icon alone doesn't
tell screen readers what the button does.
Colours
2 coloursNeutral
koala-icon-button="Neutral"
Danger
koala-icon-button="Danger"
Variants
2 variantsOutlined (default)
resting border + surface fill
Ghost
koala-icon-button-variant="Ghost"
Ghost drops the resting border + fill — no chrome until hover. Use it in quiet contexts like the top nav, where a resting outline reads too heavy.
Props
2 attributes| Attribute | Values | Notes |
|---|---|---|
| koala-icon-button | Neutral, Danger | Colour. Defaults to Neutral. Targets both <button> and <a> elements. |
| koala-icon-button-variant | Outlined, Ghost | Defaults to Outlined (resting border + fill). Ghost has no resting chrome — hover-bg only, for quiet contexts like the top nav. |
Do & don't
Do
Always set
aria-label. The visible icon doesn't read for screen readers.
Don't
Don't use a full
koala-btn with just an icon — the padding's wrong and the visual weight competes with the page's primary action.