Skip to content

Till Receipt

Pro

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.

  • React 19
  • Tailwind CSS 4

Added Nov 11, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Till Receipt needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
11
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

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

cafe-receipt.tsx

TillReceipt

<article>
PropTypeDefaultDescription
aria-labelRequiredstring—Defines a string value that labels the current element. Names the receipt for screen readers: the merchant ("Kavarna Ljubljanica receipt").
edges"both""bottom""both"
printbooleanfalse
childrenReactNode—
...props<article> attributes—Every other attribute goes to the <article>, with a ref.

TillReceiptHeader

<header>
PropTypeDefaultDescription
...props<header> attributes—Every other attribute goes to the <header>, with a ref.

TillReceiptTitle

<p>
PropTypeDefaultDescription
...props<p> attributes—Every other attribute goes to the <p>, with a ref.

TillReceiptDescription

<p>
PropTypeDefaultDescription
...props<p> attributes—Every other attribute goes to the <p>, with a ref.

TillReceiptRow

<div>
PropTypeDefaultDescription
variant"muted""total""muted"muted (default) for the meta and summary rows; total for the last row: 15px, weight 600, foreground.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

TillReceiptRowLabel

<span>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

TillReceiptRowValue

<span>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

TillReceiptItems

<ul>
PropTypeDefaultDescription
...props<ul> attributes—Every other attribute goes to the <ul>, with a ref.

TillReceiptItem

<li>
PropTypeDefaultDescription
quantitynumber—The count, shown as "2×". Leave it out for one of a kind.
...props<li> attributes—Every other attribute goes to the <li>, with a ref.

TillReceiptItemName

<span>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

TillReceiptItemAmount

<span>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.

TillReceiptSeparator

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

TillReceiptFooter

<footer>
PropTypeDefaultDescription
...props<footer> attributes—Every other attribute goes to the <footer>, with a ref.
  • 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.
  • For a receipt that prints out of a printer slot, use a Receipt Printer.
  • For a price list or a plan in a page, use a Card.

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.

Print
sheet · with `print`, the paper slides out from under its top edge once on mount
  1. AddedTill Receipt.
Open the release