Components › Actions
Icon button
A compact icon-only action with a required accessible label.
Installation
npx plankui@latest add icon-buttonUsage
import { IconButton } from "@/components/ui/icon-button";
<IconButton label="Notifications" icon={<BellIcon />} variant="secondary" />API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | required | Accessible name for the action. |
| icon | ReactNode | required | Icon drawn inside the button. |
| size | "icon" | "icon-sm" | "icon" | Button size. |