Usage
Link
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
| Prop | Type | Default | Description |
|---|---|---|---|
appearance | 'primary' | 'destructive' | 'secondary' | 'secondary-destructive' | 'ghost' | 'secondary' | Visual style of the button |
size | 'sm' | 'md' | 'lg' | 'md' | Size of the button |
square | boolean | false | Makes the button square (equal width/height) |
disabled | boolean | false | Disables the button |
loading | boolean | false | Shows a loading spinner |