{ "$schema": "https://blode.co/ui/schema/registry-item.json", "name": "card", "title": "Card", "author": "Matthew Blode", "description": "A container for grouping related content and actions.", "files": [ { "path": "ui/card.tsx", "content": "import type * as React from \"react\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst Card = ({\n className,\n size = \"default\",\n ...props\n}: React.ComponentProps<\"div\"> & { size?: \"default\" | \"sm\" }) => (\n img:first-child]:pt-0 has-data-[slot=card-footer]:pb-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl\",\n className,\n )}\n data-size={size}\n data-slot=\"card\"\n {...props}\n />\n);\n\nconst CardHeader = ({ className, ...props }: React.ComponentProps<\"div\">) => (\n \n);\n\nconst CardTitle = ({ className, ...props }: React.ComponentProps<\"div\">) => (\n \n);\n\nconst CardDescription = ({ className, ...props }: React.ComponentProps<\"div\">) => (\n \n);\n\nconst CardAction = ({ className, ...props }: React.ComponentProps<\"div\">) => (\n \n);\n\nconst CardContent = ({ className, ...props }: React.ComponentProps<\"div\">) => (\n \n);\n\nconst CardFooter = ({ className, ...props }: React.ComponentProps<\"div\">) => (\n \n);\n\nexport { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent };\n", "type": "registry:ui", "target": "" } ], "type": "registry:ui" }