{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "payment-method-01", "description": "Payment method management with edit and delete", "registryDependencies": [ "button", "card", "tooltip" ], "files": [ { "path": "creative-tim/blocks/payment-method-01/page.tsx", "content": "\"use client\"\n\nimport { Check, Pencil, Plus, Trash2 } from \"lucide-react\"\n\nimport { Badge } from \"@/components/ui/badge\"\nimport { Button } from \"@/components/ui/button\"\nimport { Card } from \"@/components/ui/card\"\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from \"@/components/ui/tooltip\"\n\ninterface PaymentMethodProps {\n type: \"visa\" | \"mastercard\"\n number: string\n isDefault?: boolean\n}\n\nfunction PaymentMethod({ type, number, isDefault }: PaymentMethodProps) {\n const cardImg =\n type === \"visa\"\n ? \"https://v3.material-tailwind.com/visa.webp\"\n : \"https://v3.material-tailwind.com/mastercard.webp\"\n\n return (\n \n {isDefault && (\n
\n
\n \n Default\n
\n
\n )}\n\n
\n
\n \n
\n\n
\n

\n **** **** **** {number}\n

\n

\n {type} Card\n

\n
\n
\n\n
\n \n \n \n \n \n \n

Edit Card

\n
\n
\n
\n\n \n \n \n \n \n \n \n \n

Remove Card

\n
\n
\n
\n
\n
\n )\n}\n\nexport default function PaymentMethod01() {\n return (\n
\n
\n
\n

Payment Methods

\n

\n Manage your preferred payment methods securely and conveniently.\n

\n
\n \n
\n\n
\n \n \n \n \n
\n
\n )\n}\n", "type": "registry:page", "target": "app/payment-method/page.tsx" } ], "meta": { "iframeHeight": "500px", "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": "Manage payment methods with a straightforward UI layout featuring shadcn/ui Card, Button, and Tooltip components. Card brands are clearly identified, sensitive information is partially hidden for security, and editing/deleting functions are easily accessible. Includes a call-to-action button for adding new payment methods. Perfect for account settings, billing pages, and checkout flows." }, "categories": [ "billing" ], "type": "registry:block" }