Skip to content
Knowns UI
Get ProSign in

Receipt Card

The bill after a payment: the amount paid, the receipt number, date and the card that paid, the lines with discount, tax and total, and actions to download the PDF or email it again.

On this page
Used for
  • After a checkout
  • Billing history row
  • Order confirmation
  • Email receipt preview

Examples

Installation

npx knowns-ui@latest add receipt-card
For Claude Code, Cursor or Codex: installs it and wires the props to your own data.

Props

lines / promo / tax
as in Order Summary
The same order the summary showed, so the totals match.
result
{ receiptNumber, paidAt, method }
What the payment resolved with. method is { brand, last4 } for a card or { label } for anything else.
merchant / title
ReactNode
Default - / "Payment received"
Who sold it, and the line above the amount.
email / onEmail
string / (email) => Promise<void>
Where the receipt went, and a resend. Throw an Error to show why it failed.
downloadHref / onDownload
string / () => void
A PDF or hosted receipt link, or a callback.
action / note
ReactNode
The next step at the bottom, and a line under the total.

Accessibility

  • The card is an article named Receipt; the details and the totals are description lists.
  • The card glyph is hidden from screen readers; the brand and last four digits are read as text.
  • The line under the buttons is a status, so Sent and a failure are announced.

What it handles

  1. 01Leads with the amount paid and a Paid mark, then the receipt number, date and the card or method that paid.
  2. 02Adds the lines up with the same discount and tax rules as the order summary, so the receipt matches what was shown before paying.
  3. 03Downloads a PDF from a link or your callback, and sends the receipt again with a Sent state or the reason it failed.
  4. 04Takes the next step (Open workspace) as a slot at the bottom.

States

First render
Nothing moves
none
Sending
Email receipt spins
until onEmail settles
Sent or failed
The line under the buttons says so
none

Works with

When to use

When to use

  • The paid state after a checkout, with download and email.
  • One receipt opened from the billing history.

When not to use

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Receipt Card to my app and wire it to my own data.
  • I need the paid state after a checkout, with download and email. Set that up with the Knowns UI Receipt Card.
  • Which Receipt Card props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "receipt-card" }) and search_docs({ query: "receipt card" }).

Need help?

Stuck on Receipt Card, or found something off? We read every message.