Button
primitiveThe primary action primitive. Four variants, three sizes, fully theme-aware.
Installation
$pnpm dlx disenio add buttonUsage
example.tsx
import { Button } from "@/components/ui/button";
export default function Example() {
return <Button variant="accent">Send →</Button>;
}Examples
Sizes
API
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "solid" | "accent" | "ghost" | "outline" | "solid" | Visual style. |
| size | "sm" | "md" | "lg" | "md" | Height and horizontal padding. |
| ...rest | ButtonHTMLAttributes | — | All standard <button> props are forwarded. |
Accessibility
A11y · live audit
updates with themeAccent on paper
3.97AA Large
Ink on paper
21.00AAA
Keyboard↹ focus · ↵ activate · space activate
ARIArole=button · aria-disabled when disabled