---
title: "Till Receipt"
description: "A shop receipt on screen: paper with a torn edge, the shop name, the lines, the total, and a footer. It can slide out as from a printer."
url: https://gelatinui.com/components/till-receipt
markdown_url: https://gelatinui.com/components/till-receipt.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/till-receipt"
version: "2026-11-11"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Till Receipt

> A shop receipt on screen: paper with a torn edge, the shop name, the lines, the total, and a footer. It can slide out as from a printer.

Page: https://gelatinui.com/components/till-receipt

## When to use it

Best for: A paid order, a bill, or a refund, shown as the paper a shop prints.

- Format each amount yourself with `Intl.NumberFormat` and the currency, then put it in `TillReceiptRowValue` or `TillReceiptItemAmount`.
- Use `edges="bottom"` for a receipt fresh off the roll, and `both` for a torn one.
- Set `print` to slide the paper out once when it mounts.

## When not to use it

- For a receipt that prints out of a printer slot, use a [Receipt Printer](https://gelatinui.com/components/receipt-printer.md).
- For a price list or a plan in a page, use a [Card](https://gelatinui.com/components/card.md).

## Notes for agents

- Every amount comes in already formatted: the receipt does no math.
- `TillReceiptRow` with `variant="total"` is the large last line.
- Leave `quantity` out for one of a kind; a long name wraps under itself.
- `aria-label` is required: name the merchant.
- Put a `Barcode` in `TillReceiptFooter` for the order number.

## Anatomy

```text
TillReceipt
├─ TillReceiptHeader (0..n)
├─ TillReceiptTitle (0..n)
├─ TillReceiptDescription (0..n)
├─ TillReceiptRow (0..n)
├─ TillReceiptRowLabel (0..n)
├─ TillReceiptRowValue (0..n)
├─ TillReceiptItems (0..n)
├─ TillReceiptItem (0..n)
├─ TillReceiptItemName (0..n)
├─ TillReceiptItemAmount (0..n)
├─ TillReceiptSeparator (0..n)
└─ TillReceiptFooter (0..n)
```

## API reference

### TillReceipt

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `aria-label` | `string` |  | Defines a string value that labels the current element. Names the receipt for screen readers: the merchant ("Kavarna Ljubljanica receipt"). |
| `edges` | `"both" \| "bottom"` | "both" |  |
| `print` | `boolean` | false |  |
| `children` | `ReactNode` |  |  |

### TillReceiptHeader

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### TillReceiptTitle

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### TillReceiptDescription

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### TillReceiptRow

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `variant` | `"muted" \| "total"` | "muted" | `muted` (default) for the meta and summary rows; `total` for the last row: 15px, weight 600, foreground. |

### TillReceiptRowLabel

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### TillReceiptRowValue

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### TillReceiptItems

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### TillReceiptItem

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `quantity` | `number` |  | The count, shown as "2×". Leave it out for one of a kind. |

### TillReceiptItemName

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### TillReceiptItemAmount

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### TillReceiptSeparator

No props of its own: `className`, `children`, and every other prop go to the element it renders.

### TillReceiptFooter

No props of its own: `className`, `children`, and every other prop go to the element it renders.

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| TillReceipt | `till-receipt` |  | `--shape-size` | `motion-timing`, `shape` |
| TillReceiptHeader | `till-receipt-header` |  |  |  |
| TillReceiptTitle | `till-receipt-title` |  |  |  |
| TillReceiptDescription | `till-receipt-description` |  |  |  |
| TillReceiptRow | `till-receipt-row` | `data-variant` |  |  |
| TillReceiptRowLabel | `till-receipt-row-label` |  |  |  |
| TillReceiptRowValue | `till-receipt-row-value` |  |  |  |
| TillReceiptItems | `till-receipt-items` |  |  |  |
| TillReceiptItem | `till-receipt-item` |  |  |  |
| TillReceiptItemName | `till-receipt-item-name` |  |  |  |
| TillReceiptItemAmount | `till-receipt-item-amount` |  |  |  |
| TillReceiptSeparator | `till-receipt-separator` |  | `--border` |  |
| TillReceiptFooter | `till-receipt-footer` |  |  |  |

## Usage

Compose the header, the rows, the items, and the total.

```tsx title="cafe-receipt.tsx"
import {
  TillReceipt,
  TillReceiptHeader,
  TillReceiptItem,
  TillReceiptItemAmount,
  TillReceiptItemName,
  TillReceiptItems,
  TillReceiptRow,
  TillReceiptRowLabel,
  TillReceiptRowValue,
  TillReceiptSeparator,
  TillReceiptTitle,
} from "@/components/pro/labels/till-receipt";

export function CafeReceipt() {
  return (
    <TillReceipt aria-label="Kavarna Ljubljanica receipt">
      <TillReceiptHeader>
        <TillReceiptTitle>Kavarna Ljubljanica</TillReceiptTitle>
      </TillReceiptHeader>
      <TillReceiptItems>
        <TillReceiptItem quantity={2}>
          <TillReceiptItemName>Flat white</TillReceiptItemName>
          <TillReceiptItemAmount>€7.00</TillReceiptItemAmount>
        </TillReceiptItem>
      </TillReceiptItems>
      <TillReceiptSeparator />
      <TillReceiptRow variant="total">
        <TillReceiptRowLabel>Total</TillReceiptRowLabel>
        <TillReceiptRowValue>€7.00</TillReceiptRowValue>
      </TillReceiptRow>
    </TillReceipt>
  );
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui-pro/till-receipt
```

It adds 14 registry items: 11 files, 2403 lines, and the npm packages `clsx`, `tailwind-merge`, `tailwind-variants`.

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Card](https://gelatinui.com/components/card.md)
- [Price](https://gelatinui.com/components/price.md)
- [Credit Card](https://gelatinui.com/components/credit-card.md)
- [Receipt Printer](https://gelatinui.com/components/receipt-printer.md)
- [Barcode](https://gelatinui.com/components/barcode.md)

## Accessibility

It is an `article` named by its `aria-label`. The items are a list, so a screen reader counts them.

The dashed rules and the zigzag edge are hidden from screen readers.

## Motion

| Part | Motion |
| --- | --- |
| Print | sheet · with `print`, the paper slides out from under its top edge once on mount |
