Button
Displays a button or a component that looks like a button.
Dependencies
- @radix-ui/react-slot (opens in a new tab) - Merges its props onto its immediate child.
Examples
Variants
Different type of variants for button.
Sizes
Different type of sizes for button.
Loading
Add loading indicator to button.
Disabled
Make a button disabled by adding disabled prop to true and status prop to disabled.
Social Button
Social Secondary Button
API Reference
| Prop | Type | Default |
|---|---|---|
variant | enum | "primary" |
status | "disabled" | ─ |
size | enum | "default" |