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

PropTypeDefaultNotes
iconstring—Icon name from Icon
labelstring—Screen-reader text
typestring'button'Any other <button> attribute (disabled, data-*) is passed through