Koala logo Design
Esc
No matches for “
↑↓ navigate open Esc close
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).

<button koala-icon-button>

Canonical

Pair every icon button with aria-label — the icon alone doesn't tell screen readers what the button does.

Colours

2 colours
Neutral
koala-icon-button="Neutral"
Danger
koala-icon-button="Danger"

Variants

2 variants
Outlined (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-buttonNeutral, DangerColour. Defaults to Neutral. Targets both <button> and <a> elements.
koala-icon-button-variantOutlined, GhostDefaults 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.