Aurora Button
aurora-dinglebear-ai/aurora-buttonUnverifiedComponent
Multi-variant button with aurora glow, rose, neutral, ghost, and destructive styles. Inline-style gradients and box-shadow glows.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/dinglebear-ai/aurora/main/aurora-button.jsonSource
1"use client"23/**4 * Aurora Button — operator-grade action control.5 * Border + glow (the tight hard ring), never a flooded fill or soft corner halo.6 *7 * Visual layer lives in registry/aurora/styles/aurora-components.css8 * (`@layer components`, reads only `--aurora-*` tokens) so it renders9 * pixel-identical in dark + `.light` and Tailwind utilities can override it.10 * Architecture stays shadcn: `Slot`/`asChild`, `cva` `buttonVariants`, `VariantProps`,11 * `React.memo`.12 */1314import * as React from "react"15import { Slot } from "@radix-ui/react-slot"16import { cva, type VariantProps } from "class-variance-authority"17import { cn } from "@/lib/utils"1819export type ButtonVariant =20 | "aurora"21 | "neutral"22 | "rose"23 | "success"24 | "warn"25 | "ghost"26 | "destructive"27 | "plain"2829export type ButtonSize = "sm" | "default" | "lg" | "icon" | "unstyled"3031// ─── cva (class selection + buttonVariants export) ─────────────────────────────3233const buttonVariants = cva("aurora-btn", {34 variants: {35 variant: {36 aurora: "aurora-btn--aurora",37 neutral: "aurora-btn--neutral",38 rose: "aurora-btn--rose",39 success: "aurora-btn--success",40 warn: "aurora-btn--warn",41 ghost: "aurora-btn--ghost",42 destructive: "aurora-btn--destructive",43 plain: "aurora-btn--plain",44 },45 size: {46 sm: "aurora-btn--sm",47 default: "",48 lg: "aurora-btn--lg",49 icon: "aurora-btn--icon",50 unstyled: "aurora-btn--unstyled",51 },52 },53 defaultVariants: {54 variant: "neutral",55 size: "default",56 },57})5859export interface ButtonProps60 extends React.ButtonHTMLAttributes<HTMLButtonElement>,61 VariantProps<typeof buttonVariants> {62 /** Intent. `aurora` is the lit-outline cyan primary; rose is send/agent; warn is the clay-orange caution. */63 variant?: ButtonVariant64 size?: ButtonSize65 /** Slow glow pulse to draw attention without bouncing. Respects reduced-motion. */66 pulse?: boolean67 /** Flood the variant accent as a solid fill (the one hero/armed action per surface). Default false = lit-outline. */68 filled?: boolean69 /** Swap content for a spinner and block interaction. Width holds steady so the button doesn't jump. */70 loading?: boolean71 /** Stretch to fill the container width (forms, stacked CTAs, mobile). */72 block?: boolean73 /** Fully rounded pill shape (filter chips, compact toolbars). */74 shape?: "default" | "pill"75// … truncated
What it pulls in
npm packages
Other registry items
Files it writes
More from aurora
All 176 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Aurora Accordionaurora-accordion | aurora | Components | Unverified | 2 deps | |
| Aurora Alert Dialogaurora-alert-dialog | aurora | Components | Unverified | 2 deps | |
| Aurora Aspect Ratioaurora-aspect-ratio | aurora | Components | Unverified | no deps | |
| Aurora Avataraurora-avatar | aurora | Components | Unverified | 1 dep | |
| Aurora Badgeaurora-badge | aurora | Components | Unverified | 2 deps | |
| Aurora Banneraurora-banner | aurora | Components | Unverified | 1 dep | |
| Aurora Breadcrumbaurora-breadcrumb | aurora | Components | Unverified | 2 deps | |
| Aurora Button Groupaurora-button-group | aurora | Components | Unverified | no deps |
