Components
IconButton

IconButton

Icon Buttons represent minor actions in a flow. It includes a label only for accessibility that is not visible, so the icon must be recognizable by itself.

Required props

label

Icon button label. Needed for accessibility.

type
React.ReactNode
default
null

children

Button contents

type
React.ReactNode
default
null

Optional props

size

Increase or decrease padding.

type
normal
large
default
normal

variant

Change between color combinations.

type
primary
secondary
tertiary
critical
criticalTertiary
default
secondary

loading

Disable the button and show a spinner.

type
boolean
default
false

asChild

Merge button props with immediate child.

type
boolean
default
false

Related components