{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "card",
  "title": "Card",
  "description": "Surface container with header, title, description, content and footer slots.",
  "files": [
    {
      "path": "registry/rapid/ui/card/card.tsx",
      "content": "import type * as React from 'react'\nimport { cn } from '@/lib/utils'\n\nfunction Card({ className, size = 'default', ...props }: React.ComponentProps<'div'> & { size?: 'default' | 'sm' }) {\n\treturn (\n\t\t// min-h-min: overflow-hidden would let a flex column shrink the card below its content and clip it; pass\n\t\t// `min-h-0` to let a card shrink and scroll inside instead\n\t\t<div\n\t\t\tdata-slot=\"card\"\n\t\t\tdata-size={size}\n\t\t\tclassName={cn(\n\t\t\t\t'group/card flex min-h-min flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground border border-border [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nfunction CardHeader({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"card-header\"\n\t\t\tclassName={cn(\n\t\t\t\t'group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] border-b pb-(--card-spacing)',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nfunction CardTitle({\n\tclassName,\n\tas: Heading = 'h3',\n\t...props\n}: React.ComponentProps<'h3'> & {\n\t/** Heading level to render, so the card fits the page's heading outline */\n\tas?: 'h2' | 'h3' | 'h4' | 'h5' | 'h6'\n}) {\n\treturn (\n\t\t<Heading\n\t\t\tdata-slot=\"card-title\"\n\t\t\tclassName={cn('font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm', className)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nfunction CardDescription({ className, ...props }: React.ComponentProps<'p'>) {\n\treturn <p data-slot=\"card-description\" className={cn('text-sm text-muted-foreground', className)} {...props} />\n}\n\nfunction CardAction({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"card-action\"\n\t\t\tclassName={cn('col-start-2 row-span-2 row-start-1 self-start justify-self-end', className)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nfunction CardContent({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn <div data-slot=\"card-content\" className={cn('px-(--card-spacing)', className)} {...props} />\n}\n\nfunction CardFooter({ className, ...props }: React.ComponentProps<'div'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"card-footer\"\n\t\t\tclassName={cn('flex items-center rounded-b-xl border-t p-(--card-spacing)', className)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nexport { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent }\n",
      "type": "registry:ui",
      "target": "components/ui/card.tsx"
    }
  ],
  "type": "registry:ui"
}