- Docs
- Components
- Button
Button
Displays a button or a component that looks like a button.
Preview
Code
Installation
CLI
Manual
Anatomy
Examples
Sizes
Preview
Code
Custom Variants
Preview
Code
Icon
Preview
Code
Icon-only buttons need accessible labels.
Choose your preferred approach:
Both work identically. Use aria-label for brevity or sr-only for visibility in your code.
API Reference
| Prop | Type | Default |
|---|---|---|
variant | enum | "default" |
size | enum | "default" |
isDisabled | boolean | |
isPending | boolean | |
type | enum | "button" |