Components · Controls
ButtonButton
40, 48 and 56 pills and round buttons: variants and states
npx shadcn@latest add @umbra/buttonA pill with a Label (14 / 500) or a round icon button. No borders or backgrounds, color only by role
When to use
primary: the one main action on a screen or in a tile (“Start recording”, “Save”)secondary: a regular action next to the main one (“Cancel”, “Export”)ghost: a quiet secondary action (“Later”, “Learn more”)destructive: deletion. Only for irreversible actionsicon: a round icon button when the meaning is clear without a label (in the page header: 56 button, 24 icon). Put the label inaria-label
When not to use
- Filter or tab:
Chip - Navigation item:
Sidebar - Search:
SearchToggle - Stopping a recording: the red dock button (
Dock), notdestructive - A link in text: a regular link. A link styled as a button goes through
asChild