Tally UI

CheckoutTitle

Shows the order reference, customer or Guest, and local creation day and time as a checkout heading.

Import

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

Usage

<CheckoutTitle order={sale.order} />

Cart draws this heading above the column heads during tender when its checkoutTitle prop is true.

Props

PropTypeDefaultDescription
orderCheckoutTitleProps['order']requiredProvides the local ID, optional store display ID, customer name (or Guest), and creation timestamp
localestringdevice localeLocale for the day and time
hour12booleanlocale defaultUse a 12-hour clock when true or a 24-hour clock when false
nowDatecurrent momentA creation date on the same local day reads Today; other dates show the day and short month
testIDstringcheckout-titleTest identifier for the heading

On this page