import React from "react"; import { cn } from "../../lib/utils"; interface BentoCardData { title: string; description: string; icon: React.ElementType; className?: string; background?: React.ReactNode; } interface BentoGridProps extends React.HTMLAttributes { cards: BentoCardData[]; columns?: number; rowHeight?: string; } export const BentoGrid = ({ cards, columns = 3, rowHeight = "auto", className, ...props }: BentoGridProps) => { return (
{cards.map((card, index) => { const Icon = card.icon; return (
{card.background && (
{card.background}
)} {/* Hover-revealed content */}

{card.title}

{card.description}

{/* Hover overlay effect */}
); })}
); };