Button
Aurora-styled button with gradient variants and motion presets.
Installation
npx popcn add buttonPlayground
<Button variant="aurora" motion="pop" size="md">
Button
</Button>Variants
Aurora (default)
Glass
Ghost
Motion Presets
Pop (default)
Float
Shine
Snap
Sizes
All Sizes
With Icons
Icon Buttons
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "aurora" | "glass" | "ghost" | "aurora" | Visual style variant |
| size | "sm" | "md" | "lg" | "md" | Button size |
| motion | "pop" | "float" | "shine" | "snap" | "none" | "pop" | Animation preset |
| leftIcon | ReactNode | - | Icon on the left |
| rightIcon | ReactNode | - | Icon on the right |
| disabled | boolean | false | Disable the button |
Usage
import { Button } from "@/components/ui/button"
export default function Example() {
return (
<div className="flex gap-4">
<Button variant="aurora" motion="pop">
Primary Action
</Button>
<Button variant="glass" motion="shine">
Secondary
</Button>
<Button variant="ghost">
Cancel
</Button>
</div>
)
}