ComponentsPrimitivesButton
Button
Density-aware button with loading state and asChild.
@radix-ui/react-slotclass-variance-authority1 file
Loading documentation…
import { Button, buttonVariants } from "@/components/ui/button"
The exports above are the public API. Each component forwards className and is sized with the --density token, so it follows the appearance settings automatically. Read the source in the Code tab of the preview or in src/components/ui/button.tsx for the full prop types.
Packages: @radix-ui/react-slot, class-variance-authority.