Icon button
Round 4rem buttons holding one icon, with the same fill hover as Button. Used for slider arrows.
Usage
label is required: it’s the button’s accessible name, since there’s no visible text. Disabled buttons dim to half opacity.
<IconButton icon="arrow-left" label="Back" disabled />
<IconButton icon="arrow-right" label="Next" />Props
| Prop | Type | Default | Notes |
|---|---|---|---|
icon | string | — | Icon name from Icon |
label | string | — | Screen-reader text |
type | string | 'button' | Any other <button> attribute (disabled, data-*) is passed through |