{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "reveal-card",
  "title": "Reveal Card",
  "author": "VenusUI",
  "description": "A media card whose details slide up on hover or keyboard focus.",
  "files": [
    {
      "path": "registry/default/ui/reveal-card.tsx",
      "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface RevealCardProps extends Omit<React.ComponentProps<\"article\">, \"title\"> {\n  /** Visual at the top of the card: an image, video or illustration. */\n  media: React.ReactNode\n  /** Always-visible title. */\n  title: React.ReactNode\n  /** Details that slide up over the media on hover or keyboard focus. */\n  children: React.ReactNode\n}\n\n/**\n * A media card whose details slide up on hover or when anything inside gets\n * keyboard focus. On touch screens (no hover) the details are always shown.\n * With reduced motion the details appear without sliding.\n */\nfunction RevealCard({ media, title, children, className, ...props }: RevealCardProps) {\n  return (\n    <article\n      data-slot=\"reveal-card\"\n      className={cn(\"group relative w-full max-w-sm overflow-hidden rounded-xl border bg-card\", className)}\n      {...props}\n    >\n      <div className=\"aspect-[4/3] overflow-hidden bg-muted\">{media}</div>\n      <div\n        className={cn(\n          \"absolute inset-x-0 bottom-0 translate-y-[calc(100%-3.5rem)] bg-card/95 p-4 backdrop-blur-sm transition-transform duration-300 ease-out motion-reduce:transition-none\",\n          \"group-hover:translate-y-0 group-focus-within:translate-y-0 [@media(hover:none)]:translate-y-0\"\n        )}\n      >\n        <h3 className=\"flex h-6 items-center font-medium\">{title}</h3>\n        <div className=\"mt-3 text-sm text-muted-foreground\">{children}</div>\n      </div>\n    </article>\n  )\n}\n\nexport { RevealCard, type RevealCardProps }\n",
      "type": "registry:ui"
    }
  ],
  "meta": {
    "version": "0.1.0"
  },
  "categories": [
    "cards",
    "interactive"
  ],
  "type": "registry:ui"
}