A
Auralix UI

Button

A versatile button component for triggering actions and events.

Preview

Installation

bash
npx auralix-ui add button

Usage

Default Button

tsx
import { Button } from "@/components/ui/Button";

<Button>Click me</Button>

Button Variants

tsx
<Button variant="primary">Primary</Button>
<Button variant="secondary">Secondary</Button>
<Button variant="outline">Outline</Button>
<Button variant="ghost">Ghost</Button>
<Button variant="destructive">Destructive</Button>

Button Sizes

tsx
<Button size="sm">Small</Button>
<Button size="md">Medium</Button>
<Button size="lg">Large</Button>

Props

NameTypeDefaultDescription
variant"primary" | "secondary" | "outline" | "ghost" | "destructive""primary"The visual style variant of the button.
size"sm" | "md" | "lg""md"The size of the button.
disabledbooleanfalseWhether the button is disabled.
childrenReactNode-The content of the button.

Variants

Gradient
Neon
Soft