Starts an action. Six variants from a filled default to a plain link, in four sizes plus icon sizes.
npx shadcn@latest add @sphere-kit/buttonimport { Button,} from "@/components/ui/button"4 rules for using it well. Open one to see it drawn.
Exports Button buttonVariants. Every part takes its element's usual props and a className.
| Prop | Options | Default |
|---|---|---|
| variant | defaultoutlinesecondaryghostdestructivelink | default |
| size | defaultxssmlgiconicon-xsicon-smicon-lg | default |