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
| Prop | Type | Default | Description |
|---|---|---|---|
order | CheckoutTitleProps['order'] | required | Provides the local ID, optional store display ID, customer name (or Guest), and creation timestamp |
locale | string | device locale | Locale for the day and time |
hour12 | boolean | locale default | Use a 12-hour clock when true or a 24-hour clock when false |
now | Date | current moment | A creation date on the same local day reads Today; other dates show the day and short month |
testID | string | checkout-title | Test identifier for the heading |