{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "card-display-01", "type": "registry:block", "description": "Credit card display with dark and light themes", "registryDependencies": [ "card" ], "files": [ { "path": "creative-tim-ui/blocks/card-display-01/page.tsx", "content": "\"use client\"\n\nimport { Wifi } from \"lucide-react\"\n\nimport { Card } from \"@/components/ui/card\"\n\ninterface CreditCardProps {\n variant?: \"dark\" | \"light\"\n number: string\n holder: string\n expires: string\n}\n\nfunction CreditCard({\n variant = \"light\",\n number,\n holder,\n expires,\n}: CreditCardProps) {\n const isDark = variant === \"dark\"\n\n return (\n \n
\n\n
\n \n \n
\n \n
\n
\n
\n\n
\n

\n {String(number)\n .match(/.{1,4}/g)\n ?.join(\" \")}\n

\n
\n\n
\n
\n
\n \n Card Holder\n

\n

{holder}

\n
\n
\n \n Expires\n

\n

{expires}

\n
\n
\n
\n \n
\n
\n \n )\n}\n\nexport default function CardDisplay01() {\n return (\n
\n \n \n
\n )\n}\n", "type": "registry:page", "target": "app/card-display/page.tsx" } ], "meta": { "iframeHeight": "400px", "container": "w-full bg-surface min-h-svh flex px-4 py-12 items-center md:py-20 justify-center min-w-0", "mobile": "component", "details": "Showcases dark and light versions of a card with bank brand logos. Built with shadcn/ui Card component for consistent styling across themes. Ideal for payment forms, checkout processes, wallet sections, financial dashboards, and any interface requiring elegant credit card visualization with theme support." }, "categories": [ "billing" ] }