RegisterPicker
RegisterPicker lists store registers in a scrollable selection card, calls onPick with a chosen ID, and shows a message for an empty list.
Import
import { RegisterPicker } from '@tallyui/components';Usage
<RegisterPicker
registers={[
{ id: 'front', name: 'Front counter' },
{ id: 'back', name: 'Back counter' },
]}
onPick={(id) => bindRegister(id)}
/>Renders a Choose a register card with a scrollable list of register buttons, each labeled “Not opened”. Selecting one calls onPick so the app can bind the till; an empty list shows a message that no registers are set up.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
registers | RegisterPickerRegister[] | required | The app's list of registers for the store |
onPick | (id: string) => void | required | Called with the selected register's ID |
className | string | --- | Styles passed to the containing card |
RegisterPickerRegister
interface RegisterPickerRegister {
id: string;
name: string;
}RegisterOpenClose
RegisterOpenClose provides a register opening or closing shell with an expected balance banner, cash count and notes slots, and a contextual action.
OpenRegisterCard
OpenRegisterCard accepts a starting cash amount, offers configured float or last counted cash, shows variance, and opens the register.