{ "name": "card-flip", "type": "registry:component", "dependencies": [ "lucide-react" ], "files": [ { "type": "registry:component", "content": "\"use client\";\n\n/**\n * @author: @dorianbaffier\n * @description: Card Flip\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 { ArrowRight, Repeat2 } from \"lucide-react\";\nimport { useState } from \"react\";\nimport { cn } from \"@/lib/utils\";\n\nexport interface CardFlipProps {\n title?: string;\n subtitle?: string;\n description?: string;\n features?: string[];\n}\n\nexport default function CardFlip({\n title = \"Design Systems\",\n subtitle = \"Explore the fundamentals\",\n description = \"Dive deep into the world of modern UI/UX design.\",\n features = [\"UI/UX\", \"Modern Design\", \"Tailwind CSS\", \"Kokonut UI\"],\n}: CardFlipProps) {\n const [isFlipped, setIsFlipped] = useState(false);\n\n return (\n setIsFlipped(true)}\n onMouseLeave={() => setIsFlipped(false)}\n >\n \n \n
\n \n
\n {[...Array(10)].map((_, i) => (\n \n ))}\n
\n
\n \n\n
\n
\n
\n

\n {title}\n

\n

\n {subtitle}\n

\n
\n
\n \n \n
\n
\n
\n \n\n {/* Back of card */}\n \n
\n
\n

\n {title}\n

\n

\n {description}\n

\n
\n\n
\n {features.map((feature, index) => (\n \n \n {feature}\n
\n ))}\n
\n \n\n
\n \n \n Start today\n \n
\n \n \n
\n \n
\n \n \n\n \n \n );\n}\n", "path": "/components/kokonutui/card-flip.tsx", "target": "components/kokonutui/card-flip.tsx" } ] }