Basics
Button
A pill for actions. Six variants, five sizes, and a loading state that keeps the button's width.
src/components/ui/button.tsxNo ui-sdk
Variants
Sizes, icons, and loading
Import
tsx
import { Button } from "@/components/ui/button";Guidelines
- One main action per area:
defaultoraccent. The rest aresoft,outline, orghost. - Icon buttons (
size="icon") must have anaria-label. - Links that look like buttons use
buttonVariants()on aLink, not a<button>.