Components › Actions

Icon button

A compact icon-only action with a required accessible label.

Installation

npx plankui@latest add icon-button

Usage

import { IconButton } from "@/components/ui/icon-button";

<IconButton label="Notifications" icon={<BellIcon />} variant="secondary" />

API reference

PropTypeDefaultDescription
labelstringrequiredAccessible name for the action.
iconReactNoderequiredIcon drawn inside the button.
size"icon" | "icon-sm""icon"Button size.

View the source on GitHub