Compose the header, the rows, the items, and the total.
cafe-receipt.tsx
TillReceipt
<article>| 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" | |
boolean | false | ||
| children | ReactNode | — | |
| ...props | <article> attributes | — | Every other attribute goes to the <article>, with a ref. |
TillReceiptHeader
<header>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <header> attributes | — | Every other attribute goes to the <header>, with a ref. |
TillReceiptTitle
<p>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <p> attributes | — | Every other attribute goes to the <p>, with a ref. |
TillReceiptDescription
<p>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <p> attributes | — | Every other attribute goes to the <p>, with a ref. |
TillReceiptRow
<div>| 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. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
TillReceiptRowLabel
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
TillReceiptRowValue
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
TillReceiptItems
<ul>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <ul> attributes | — | Every other attribute goes to the <ul>, with a ref. |
TillReceiptItem
<li>| Prop | Type | Default | Description |
|---|---|---|---|
| quantity | number | — | 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>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
TillReceiptItemAmount
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
TillReceiptSeparator
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
TillReceiptFooter
<footer>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <footer> attributes | — | Every other attribute goes to the <footer>, with a ref. |















