{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "glass-card", "type": "registry:ui", "title": "Glass Card", "description": "Glass-themed container with backdrop blur, glow effects, and hover animations.\n * Provides a foundational card component for glassmorphism UIs.\n *\n * ## Features", "dependencies": [ "@radix-ui/react-slot", "class-variance-authority", "react", "shadcn-glass-ui" ], "registryDependencies": [ "cn", "use-hover", "variants" ], "files": [ { "path": "components/glass/ui/glass-card.tsx", "type": "registry:component", "content": "/**\n * GlassCard Component\n *\n * Glass-themed container with backdrop blur, glow effects, and hover animations.\n * Provides a foundational card component for glassmorphism UIs.\n *\n * ## Features\n * - Theme-aware styling (glass/light/aurora) via CSS variables\n * - Configurable blur intensity (subtle 8px, medium 16px, strong 24px)\n * - Optional glow effects (blue, violet, cyan)\n * - Hover animations with scale and glow effects\n * - Polymorphic rendering via `asChild` (Radix UI Slot pattern)\n * - Padding variants (none, compact, default, featured)\n * - Touch-friendly interactions (minimum 44x44px for interactive use)\n *\n * ## CSS Variables\n * Customize styling via theme CSS variables:\n * - `--card-subtle-bg`, `--card-medium-bg`, `--card-strong-bg` - Background colors\n * - `--card-subtle-border`, `--card-medium-border`, `--card-strong-border` - Border colors\n * - `--card-hover-bg`, `--card-hover-border`, `--card-hover-glow` - Hover states\n * - `--glow-blue`, `--glow-violet`, `--glow-cyan`, `--glow-neutral` - Glow effects\n * - `--blur-sm` (8px), `--blur-md` (16px), `--blur-lg` (24px) - Backdrop blur\n *\n * @example Basic card with medium intensity\n * ```tsx\n * import { GlassCard } from 'shadcn-glass-ui'\n *\n * function MyCard() {\n * return (\n * \n *

Card Title

\n *

Card content goes here

\n *
\n * )\n * }\n * ```\n *\n * @example With glow effects\n * ```tsx\n * \n *

Highlighted Card

\n *

This card has a blue glow effect

\n *
\n *\n * \n *

Interactive Card

\n *

Hover over this card for effects

\n *
\n * ```\n *\n * @example As clickable link (asChild pattern)\n * ```tsx\n * \n * \n * \"Product\"\n *

Product Name

\n *

$99.99

\n *
\n *
\n *\n * // With Next.js Link\n * \n * \n * \n * Go to Dashboard\n * \n * \n * ```\n *\n * @example Different intensity levels\n * ```tsx\n *
\n * \n * Subtle blur (8px)\n * \n * \n * Medium blur (16px)\n * \n * \n * Strong blur (24px)\n * \n *
\n * ```\n *\n * @accessibility\n * - **Keyboard Navigation:** When used with `asChild` as a link/button, inherits native keyboard support (Enter/Space activation)\n * - **Focus Management:** Focus ring applied to child element when using `asChild` pattern with interactive elements\n * - **Screen Readers:** Semantic HTML preserved via `asChild` - use appropriate elements (``, `