Usage
Sizes
Disabled state
With click handler
API reference
IconButton
Extends all standard HTML button attributes.1 | 2 | 3 | 4
default:"2"
The size of the button. Larger numbers create larger buttons.
string
Accessible label for the button. Required for accessibility since icon buttons don’t have visible text.
boolean
Whether the button is disabled.
string
Additional CSS class for the button.
(event: MouseEvent) => void
Click handler for the button.
ReactNode
required
The icon to display inside the button.
CSSProperties
Inline styles for the button.
'button' | 'submit' | 'reset'
default:"button"
The HTML button type.