Button

A button triggers an event or action. They let users know what will happen next.

Usage

Use ButtonLink when an action navigates to another page.

Appearance

Buttons come in different visual styles to indicate hierarchy and purpose.

Size

Square

For icon-only buttons, use the square prop to ensure equal width and height.

Disabled

Disabled buttons cannot be interacted with.

Loading

Props

PropTypeDefaultDescription
appearance'primary' | 'destructive' | 'secondary' | 'secondary-destructive' | 'ghost''secondary'Visual style of the button
size'sm' | 'md' | 'lg''md'Size of the button
squarebooleanfalseMakes the button square (equal width/height)
disabledbooleanfalseDisables the button
loadingbooleanfalseShows a loading spinner