{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "bento-grid", "title": "Bento Grid", "description": "CSS Grid bento layout with variable column/row spanning slots", "files": [ { "path": "registry/pioneerui/bento-grid.tsx", "content": "import React from \"react\"\nimport { cn } from \"@/lib/utils\"\n\nexport interface BentoGridProps extends React.HTMLAttributes {\n children?: React.ReactNode\n}\n\nexport function BentoGrid({ children, className, ...props }: BentoGridProps) {\n return (\n \n {children}\n \n )\n}\n\nexport interface BentoCardProps extends React.HTMLAttributes {\n name?: string\n description?: string\n icon?: React.ReactNode\n background?: React.ReactNode\n colSpan?: 1 | 2 | 3\n rowSpan?: 1 | 2\n cta?: string\n href?: string\n}\n\nexport function BentoCard({\n name,\n description,\n icon,\n background,\n className,\n colSpan = 1,\n rowSpan = 1,\n cta,\n href,\n ...props\n}: BentoCardProps) {\n const colClass = { 1: \"\", 2: \"sm:col-span-2\", 3: \"sm:col-span-3\" }[colSpan]\n const rowClass = { 1: \"\", 2: \"row-span-2\" }[rowSpan]\n\n return (\n \n {/* Background slot */}\n {background && (\n
\n {background}\n
\n )}\n\n {/* Content */}\n
\n {icon && (\n
\n {icon}\n
\n )}\n {name && (\n

{name}

\n )}\n {description && (\n

{description}

\n )}\n {cta && href && (\n \n {cta} →\n \n )}\n
\n \n )\n}\n", "type": "registry:ui", "target": "components/pioneerui/bento-grid.tsx" } ], "type": "registry:ui" }