Component
Button
A Neo-Brutalism styled button component with multiple variants and sizes. Built on top of Radix UI Slot for polymorphism.
Preview
Installation
pnpm dlx brutx@latest add buttonUsage
import { Button } from "@/components/ui/button"
<Button variant="primary">Click me</Button>Variants
Default
Primary
Secondary
Accent
Danger
Success
Outline
Ghost
Link
Sizes
With Icons
Disabled State
Props
| Prop | Type | Default |
|---|---|---|
| variant | "default" | "primary" | "secondary" | "accent" | "danger" | "success" | "outline" | "ghost" | "link" | "default" |
| size | "sm" | "default" | "lg" | "xl" | "icon" | "default" |
| asChild | boolean | false |
| disabled | boolean | false |