Receipt

A polished payment receipt with ticket details, card information, and a decorative barcode.

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

PropTypeDefaultDescription
ticketIdstringโ€”Ticket or transaction identifier.
amountstringโ€”Formatted payment amount.
dateTimestringโ€”Formatted issue date and time.
cardholderstringโ€”Name shown in the payment row.
cardLastFourstringโ€”Last four digits of the payment card.
barcodeValuestringticketIdText displayed beneath the decorative barcode.
titlestring"Thank you!"Receipt heading.
descriptionstring"Your ticket has been issued successfully"Receipt supporting message.
successIconReactNode"๐ŸŽ‰"Icon displayed above the heading.
classNamestringโ€”Additional CSS classes.