Button
Displays a button or a component that looks like a button.
Installation
Usage
Examples
Default
Outline
Destructive
Secondary
Ghost
Link
Sizes
With Icon
Loading State
API Reference
Properties
Property | Type | Default | Description |
---|---|---|---|
variant | "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "default" | The visual variant of the button. |
size | "default" | "sm" | "lg" | "icon" | "default" | The size of the button. |
disabled | boolean | false | Whether the button is disabled. |
class | string | — | Additional CSS classes to apply to the button. |
Built with ❤️ by @immohammadjaved • Source code available on GitHub