Icon button
Square button for a single icon. The aria-label is required.
Install this component
Install command hidden until you are signed in with a license.
Live demo
Props
| Prop | Type | Description |
|---|---|---|
| icon | ReactNode | The icon. |
| aria-label | string | Accessible name (required). |
| size | "sm" | "md" | "lg"default "md" | Hit area. |
Accessibility
Keyboard
- Enter / SpaceActivate
ARIA and semantics
- aria-label is a required prop
- Icon is aria-hidden
- Minimum 44px target at md and lg
Source
Copy the files into your project. Or install with the commands above (they unlock with your license).
The full Icon button source is part of the license.
The live demo is free to try. A license unlocks copy-paste source, installs and exports for every component and pack.
Unlock every icon