Themes
Ecommerce
UI Elements
Installation
$ pnpm dlx shadcn@latest add @emailcn/block-receipt-default
Usage
import { ReceiptDefault } from "@/components/emails/receipt-default";<ReceiptDefault {...ReceiptDefault.PreviewProps} />API Reference
Receipt Emails
| Prop | Type | Default | Description |
|---|---|---|---|
logoUrl | string | - | URL of the product logo |
logoAlt | string | "Logo" | Alt text for logo |
items | Array<{description, amount, quantity}> | - | Line items |
subtotal | string | - | Subtotal amount |
tax | string | - | Tax amount |
total | string | - | Total amount |
currency | string | "USD" | Currency code |
_productName | string | "Acme" | Product name |