Tally UI

SessionCard

Show the bound register's open session and offer an X-report.

Import

import { SessionCard, type OpenSessionRow } from '@tallyui/components';

Usage

const session: OpenSessionRow = {
  id: 'morning', registerName: 'Front', status: 'open', openedAt: '2026-12-02T08:30:00Z',
  openedBy: 'cashier-7', openedByName: 'Ana', sales: 3, expectedMinor: 12550,
};
<SessionCard session={session} currency="GBP" timezone="Europe/London"
  blind={blind} cashierId={selectedCashierId} onPrintXReport={printXReport} />

Blind cashiers can still see who opened the till, when it opened and how many sales it has. Expected cash is hidden and Print X-report is disabled because the report includes expected cash.

Props

PropTypeDefaultDescription
sessionOpenSessionRowrequiredThe bound register's open or counting session
currencystringrequiredISO currency for expected cash in minor units
timezonestringrequiredStore time zone for the opening time; use 'device' for local time
blindbooleanfalseHide expected cash and disable printing
cashierIdstring—Show the card only when the opener's cashier id matches
onPrintXReport() => void | Promise<void>—Print the X-report; omit to hide the button

On this page