A button
Installation
Usage
Link
You can use the buttonVariants
helper to create a link that looks like a button.
Alternatively, you can set the asChild
parameter and nest the link component.
Examples
Primary
A primary button
Secondary
A secondary button
Destructive
A destructive button
Outline
A button using the outline variant.
Ghost
A button using the ghost variant
Link
A button using the link variant.
Icon
An icon button
With Icon
A button with an icon
Loading
A button with a loading state.
As Child
A button wrapping a custom Link component