Loading...
Installation
Install the following dependencies:
Copy and paste the following code into your project.
Loading...
Update the import paths to match your project setup.
Composition
Button └── content
Examples
Default
Loading...
Disabled
Loading...
Icon Only
Loading...
Leading Icon
Loading...
Loading
Loading...
Sizes
Loading...
Social
Loading...
Trailing Icon
Loading...
Variants
Loading...
API Reference
Button
| Prop | Type | Default |
|---|---|---|
size | "default" | "icon" | "icon-lg" | "icon-sm" | "icon-xl" | "icon-xs" | "lg" | "sm" | "xl" | "xs" | "default" |
variant | "default" | "destructive" | "ghost" | "link" | "outline" | "secondary" | "default" |
Utilities and Supporting Types
| Export | API |
|---|---|
buttonVariants | Style recipe used to reuse the component variants. |
Angular
React
Solid
Svelte
Vue