Aurora ComponentCard
aurora-dinglebear-ai/aurora-component-cardUnverifiedComponent
Aurora ComponentCard — Claude Design parity.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/dinglebear-ai/aurora/main/aurora-component-card.jsonSource
1"use client";23import * as React from "react";4import { ChevronDown, ChevronLeft, ChevronRight, Columns2, ExternalLink } from "lucide-react";5import { Button } from "@/registry/aurora/ui/button";6import { cn } from "@/lib/utils";78// ---------------------------------------------------------------------------9// Types10// ---------------------------------------------------------------------------1112/**13 * A tag rendered in the card footer. A plain string renders as a neutral14 * outline pill; `{ label, accent: true }` renders as a filled cyan pill.15 */16export type ComponentCardTag = string | { label: string; accent?: boolean };1718export interface ComponentCardProps19 extends Omit<React.HTMLAttributes<HTMLDivElement>, "title" | "onClick"> {20 /** Component display name shown as the card heading. */21 name: string;22 /** Short one/two-line description. */23 blurb?: React.ReactNode;24 /** Footer tags. Strings → neutral pills; `{accent:true}` → cyan pill. */25 tags?: ComponentCardTag[];26 /** Live preview rendered inside the thumbnail / stage. */27 preview?: React.ReactNode;28 /** Height (px) of the preview thumb / stage. */29 thumbHeight?: number;30 /** `"tile"` = gallery grid tile (default). `"viewer"` = focused viewer. */31 variant?: "tile" | "viewer";3233 // --- tile ---------------------------------------------------------------34 /** Tile only: invoked when the open affordance (or the tile) is activated. */35 onOpen?: () => void;3637 // --- viewer -------------------------------------------------------------38 /** Viewer only: zero-based index of the current entry. */39 index?: number;40 /** Viewer only: total number of entries (for the `n / N` counter). */41 total?: number;42 /** Viewer only: sibling names powering the jump dropdown. */43 siblings?: string[];44 /** Viewer only: go to previous entry. */45 onPrev?: () => void;46 /** Viewer only: go to next entry. */47 onNext?: () => void;48 /** Viewer only: jump directly to a named sibling. */49 onJump?: (name: string) => void;50 /** Viewer only: preview node for the compare slot. */51 comparePreview?: React.ReactNode;52 /** Viewer only: name of the compare target. */53 compareName?: string;5455 className?: string;56}5758// ---------------------------------------------------------------------------59// Shared bits60// ---------------------------------------------------------------------------6162function Thumb({63 height,64 children,65 rounded,66}: {67 height: number;68 children?: React.ReactNode;69 rounded: string;70// … 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 Buttonaurora-button | aurora | Components | Unverified | 2 deps |
