Andeus Designfor Reactv0.1
Components · Actions

IconButton

A key with a single icon. Always give it a label; it becomes the accessible name and tooltip.

jsx
import { IconButton } from '@andeus/ui';

Variants and states

jsx
<IconButton icon="edit" label="Edit" />
<IconButton icon="trash" label="Delete" variant="ink" />
<IconButton icon="reload" label="Reset" round />
<IconButton icon="eye" label="Focus" active />

Props

PropTypeDefault
iconIconNameRequired
labelstringRequiredAccessible name.
size's' | 'm' | 'l''m'
variant'secondary' | 'ink' | 'ghost''secondary'
roundbooleanfalse
activebooleanfalseLatched (pressed-in) state.
disabledbooleanfalse
onClick(e: React.MouseEvent) => void—
PreviousButtonNextInput