Icon Button
Live example
Icon Button
Installation
npx shadcn@latest add https://hextech-ui.vercel.app/r/icon-button.jsonAPI reference
These are the main Icon Button options. See the exported TypeScript types for inherited native or primitive props.
| Prop | Type | Default |
|---|---|---|
aria-label | string (required) | — |
shape | square | round | square |
Accessible name
Always provide an aria-label describing the action. Keep purely decorative SVGs hidden from assistive technology. Disabled and loading behavior comes from the canonical Button implementation.