{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "receipt", "title": "Receipt", "description": "A polished payment receipt with ticket details, card information, and a decorative barcode.", "dependencies": [], "registryDependencies": [], "files": [ { "path": "registry/spark-ui/receipt.tsx", "content": "import { cn } from \"@/lib/utils\";\nimport type * as React from \"react\";\n\nexport interface ReceiptProps extends React.HTMLAttributes {\n title?: string;\n description?: string;\n ticketId: string;\n amount: string;\n dateTime: string;\n cardholder: string;\n cardLastFour: string;\n barcodeValue?: string;\n successIcon?: React.ReactNode;\n}\n\nexport function Receipt({\n title = \"Thank you!\",\n description = \"Your ticket has been issued successfully\",\n ticketId,\n amount,\n dateTime,\n cardholder,\n cardLastFour,\n barcodeValue = ticketId,\n successIcon = \"🎉\",\n className,\n ...props\n}: ReceiptProps) {\n return (\n \n
\n
\n {successIcon}\n
\n

{title}

\n

\n {description}\n

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

\n Ticket ID\n

\n

{ticketId}

\n
\n
\n

\n Amount\n

\n

{amount}

\n
\n
\n\n
\n

\n Date & Time\n

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

{cardholder}

\n

\n •••• {cardLastFour}\n

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

\n {barcodeValue}\n

\n
\n\n
\n {Array.from({ length: 8 }).map((_, index) => (\n \n ))}\n
\n \n );\n}\n", "type": "registry:component" } ], "type": "registry:component" }