Button
Displays a button or a component that looks like a button.
Installation
pnpm dlx shadcn@latest add https://8bit.cnlibs.com/r/button.jsonUsage
import { Button } from "@/components/ui/button";<Button>Button</Button>Outline
A button with a pixel border and a transparent background.
Secondary
A less prominent button for secondary actions.
Ghost
A borderless button that only shows its surface on hover.
Destructive
Signals a destructive or irreversible action.
Sizes
Every button size, from extra small to large, with matching icon-only sizes.
With Icon
Buttons can include an inline icon before or after the label.
Loading
Disable the button and show a spinner while work is pending.