Button
Displays a button or a component that looks like a button.
Preview
with variants
Installation
Use the CLI to add this component to your project.
Usage
tsx
5 linesCopy
Variants
Default
Secondary
Destructive
Outline
Ghost
Link
Sizes
Props
| Prop | Type | Default | Description |
|---|---|---|---|
variant | string | default | The visual style of the button |
size | string | default | The size of the button |
asChild | boolean | false | Render as child element |
disabled | boolean | false | Disable the button |