Hextech UI

Icon Button

Live example

Icon Button

Installation

Terminal
npx shadcn@latest add https://hextech-ui.vercel.app/r/icon-button.json

API reference

These are the main Icon Button options. See the exported TypeScript types for inherited native or primitive props.

PropTypeDefault
aria-labelstring (required)—
shapesquare | roundsquare

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.