Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Use overlayClassname to replace the fill color with any Tailwind background class.
Loading preview...
Loading preview...
Remember to add the data-icon="inline-start" or data-icon="inline-end" attribute to the icon for the correct spacing.
Loading preview...
Loading preview...
Render a <Spinner /> component inside the button to show a loading state. Remember to add the data-icon="inline-start" or data-icon="inline-end" attribute to the spinner for the correct spacing.
Loading preview...
| Prop | Type | Default |
|---|---|---|
variant | "default" | "outline" | "destructive" | "secondary" | "ghost" | "link" | "default" |
size | "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | "default" |
overlayClassname | string | — |