Tally UI

RegisterOpenClose

Register open and close workflow with cash count and action button

Import

import { RegisterOpenClose } from '@tallyui/components';

Usage

<RegisterOpenClose
  isOpen={false}
  onOpen={() => openRegister()}
  onClose={() => closeRegister()}
/>

Provides the UI shell for opening or closing a cash register. Shows a contextual heading, an optional expected balance banner, and slot areas for a cash count input and notes field. The primary action button toggles between "Open Register" and "Close Register" based on the current state.

Props

PropTypeDefaultDescription
isOpenbooleanrequiredWhether the register is currently open
onOpen() => void---Called when the open button is pressed
onClose() => void---Called when the close button is pressed
expectedBalancenumber---Expected cash balance shown when closing
cashCountSlotReactNode---Slot for a CashCountInput or similar widget
notesSlotReactNode---Slot for a notes text input
classNamestring---Override container styles

Live demo

On this page