Aurora Card
aurora-dinglebear-ai/aurora-cardUnverifiedComponent
Composed Aurora card shell with header, content, footer, title, and description slots.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/dinglebear-ai/aurora/main/aurora-card.jsonSource
1/**2 * Aurora Card — the canonical panel. Two tiers (strong / medium), optional3 * accent edge, optional interactive hover-lift + glow.4 *5 * Visual layer matches the Claude Design source (panel gradient, 22/18px radii,6 * strong shadow, lift-on-hover) ported via a stylesheet keyed to7 * data-attributes. Architecture keeps the shadcn compound parts.8 */910import * as React from "react"11import { cn } from "@/lib/utils"1213type CardAccent = "cyan" | "rose"1415// Styles: registry/aurora/styles/aurora-components.css (@layer aurora-components).1617/* ─── Card ────────────────────────────────────────────────────────────────── */1819interface CardProps extends React.HTMLAttributes<HTMLDivElement> {20 /** When true the card becomes a focusable, hoverable interactive tile. */21 interactive?: boolean22 /** Accent edge for featured / active / highlighted cards. Omit for none. */23 accent?: CardAccent | false24 /**25 * Visual tier. Default (omitted) is Tier-2 — the canonical panel-strong26 * gradient + strong shadow, matching the Claude Design default Card.27 * Pass `elevated={false}` for the lighter Tier-1 list/toolbar surface.28 */29 elevated?: boolean30}3132function Card({ className, interactive, accent, elevated, tabIndex, ref, ...props }: CardProps & { ref?: React.Ref<HTMLDivElement> }) {33 return (34 <div35 ref={ref}36 className={cn("aurora-card", className)}37 data-tier={elevated === false ? "1" : "2"}38 data-interactive={interactive ? "true" : undefined}39 data-accent={accent || undefined}40 tabIndex={tabIndex ?? (interactive ? 0 : undefined)}41 {...props}42 />43 )44}4546/* ─── CardHeader ──────────────────────────────────────────────────────────── */4748function CardHeader({ className, style, ref, ...props }: React.HTMLAttributes<HTMLDivElement> & { ref?: React.Ref<HTMLDivElement> }) {49 return (50 <div51 ref={ref}52 className={cn("border-b px-4 py-3", className)}53 style={{ borderColor: "var(--aurora-border-default)", ...style }}54 {...props}55 />56 )57}5859// … truncated
What it pulls in
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 Buttonaurora-button | aurora | Components | Unverified | 2 deps |
