Receipt presents a successful ticket or payment confirmation in a compact, theme-aware ticket layout.
Preview
Thanks for using Spark UI!
Your next polished interface starts here.
Ticket ID
SPARK-UI-001
Amount
$0.00
Date & Time
Spark UI
โขโขโขโข 2026
SPARK UI 2026
Installation
$ npx shadcn@latest add https://spark-ui-olive.vercel.app/r/receipt.json
Usage
import { Receipt } from "@/components/receipt";export default function ReceiptDemo() {
return (
<Receipt
title="Thanks for using Spark UI!"
description="Your next polished interface starts here."
ticketId="SPARK-UI-001"
amount="$0.00"
dateTime="14 Jul 2026 ยท 22:42"
cardholder="Spark UI"
cardLastFour="2026"
barcodeValue="SPARK UI 2026"
/>
);
}Properties
| Prop | Type | Default | Description |
|---|---|---|---|
ticketId | string | โ | Ticket or transaction identifier. |
amount | string | โ | Formatted payment amount. |
dateTime | string | โ | Formatted issue date and time. |
cardholder | string | โ | Name shown in the payment row. |
cardLastFour | string | โ | Last four digits of the payment card. |
barcodeValue | string | ticketId | Text displayed beneath the decorative barcode. |
title | string | "Thank you!" | Receipt heading. |
description | string | "Your ticket has been issued successfully" | Receipt supporting message. |
successIcon | ReactNode | "๐" | Icon displayed above the heading. |
className | string | โ | Additional CSS classes. |