{ "name": "bento-grid", "type": "registry:component", "dependencies": [ "lucide-react", "motion" ], "files": [ { "type": "registry:component", "content": "\"use client\";\n\n/**\n * @author: @dorianbaffier\n * @description: Bento Grid\n * @version: 1.0.0\n * @date: 2025-06-26\n * @license: MIT\n * @website: https://kokonutui.com\n * @github: https://github.com/kokonut-labs/kokonutui\n */\n\nimport {\n ArrowUpRight,\n CheckCircle2,\n Clock,\n Mic,\n Plus,\n Sparkles,\n Zap,\n} from \"lucide-react\";\nimport {\n motion,\n useMotionValue,\n useTransform,\n type Variants,\n} from \"motion/react\";\nimport Link from \"next/link\";\nimport { useEffect, useRef, useState } from \"react\";\nimport Anthropic from \"@/components/icons/anthropic\";\nimport AnthropicDark from \"@/components/icons/anthropic-dark\";\nimport DeepSeek from \"@/components/icons/deepseek\";\nimport Google from \"@/components/icons/gemini\";\nimport MistralAI from \"@/components/icons/mistral\";\nimport OpenAI from \"@/components/icons/open-ai\";\nimport OpenAIDark from \"@/components/icons/open-ai-dark\";\nimport { cn } from \"@/lib/utils\";\n\ninterface BentoItem {\n id: string;\n title: string;\n description: string;\n icons?: boolean;\n href?: string;\n feature?:\n | \"chart\"\n | \"counter\"\n | \"code\"\n | \"timeline\"\n | \"spotlight\"\n | \"icons\"\n | \"typing\"\n | \"metrics\";\n spotlightItems?: string[];\n timeline?: Array<{ year: string; event: string }>;\n code?: string;\n codeLang?: string;\n typingText?: string;\n metrics?: Array<{\n label: string;\n value: number;\n suffix?: string;\n color?: string;\n }>;\n statistic?: {\n value: string;\n label: string;\n start?: number;\n end?: number;\n suffix?: string;\n };\n size?: \"sm\" | \"md\" | \"lg\";\n className?: string;\n}\n\nconst bentoItems: BentoItem[] = [\n {\n id: \"main\",\n title: \"Building tomorrow's technology\",\n description:\n \"We architect and develop enterprise-grade applications that scale seamlessly with cloud-native technologies and microservices.\",\n href: \"#\",\n feature: \"spotlight\",\n spotlightItems: [\n \"Microservices architecture\",\n \"Serverless computing\",\n \"Container orchestration\",\n \"API-first design\",\n \"Event-driven systems\",\n ],\n size: \"lg\",\n className: \"col-span-2 row-span-1 md:col-span-2 md:row-span-1\",\n },\n {\n id: \"stat1\",\n title: \"AI Agents & Automation\",\n description:\n \"Intelligent agents that learn, adapt, and automate complex workflows\",\n href: \"#\",\n feature: \"typing\",\n typingText:\n \"const createAgent = async () => {\\n const agent = new AIAgent({\\n model: 'gpt-4-turbo',\\n tools: [codeAnalysis, dataProcessing],\\n memory: new ConversationalMemory()\\n });\\n\\n // Train on domain knowledge\\n await agent.learn(domainData);\\n\\n return agent;\\n};\",\n size: \"md\",\n className: \"col-span-2 row-span-1 col-start-1 col-end-3\",\n },\n {\n id: \"partners\",\n title: \"Trusted partners\",\n description:\n \"Working with the leading AI and cloud providers to deliver cutting-edge solutions\",\n icons: true,\n href: \"#\",\n feature: \"icons\",\n size: \"md\",\n className: \"col-span-1 row-span-1\",\n },\n {\n id: \"innovation\",\n title: \"Innovation timeline\",\n description:\n \"Pioneering the future of AI and cloud computing with breakthrough innovations\",\n href: \"#\",\n feature: \"timeline\",\n timeline: [\n { year: \"2020\", event: \"Launch of Cloud-Native Platform\" },\n { year: \"2021\", event: \"Advanced AI Integration & LLM APIs\" },\n { year: \"2022\", event: \"Multi-Agent Systems & RAG Architecture\" },\n { year: \"2023\", event: \"Autonomous AI Agents & Neural Networks\" },\n {\n year: \"2024\",\n event: \"AGI-Ready Infrastructure & Edge Computing\",\n },\n ],\n size: \"sm\",\n className: \"col-span-1 row-span-1\",\n },\n];\n\nconst fadeInUp: Variants = {\n hidden: { opacity: 0, y: 20 },\n visible: {\n opacity: 1,\n y: 0,\n transition: {\n duration: 0.5,\n ease: \"easeOut\",\n },\n },\n};\n\nconst staggerContainer: Variants = {\n hidden: { opacity: 0 },\n visible: {\n opacity: 1,\n transition: {\n staggerChildren: 0.15,\n delayChildren: 0.3,\n },\n },\n};\n\nconst SpotlightFeature = ({ items }: { items: string[] }) => (\n
\n {displayedText}\n |\n \n \n {submitted ? \"Listening...\" : \"Click to speak\"}\n
\n\n {item.description}\n
\n\n {/* Feature specific content */}\n {item.feature === \"spotlight\" && item.spotlightItems && (\n\n Interact with our AI using natural voice commands. Experience\n seamless voice-driven interactions with advanced speech\n recognition.\n
\n