Tally UI

ChangeDisplay

ChangeDisplay shows the change due, a `Money` the caller has already computed, formatted with the store's money format.

Import

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

Usage

<ChangeDisplay change={{ amount: 750, currency: 'USD' }} />

Shows a "Change Due" label over the formatted amount. The caller computes the change (a payment flow computes tendered minus total). It shows — when the amount cannot be formatted.

Props

PropTypeDefaultDescription
changeMoneyrequiredChange due, already computed by the caller
localestring—Locale used to format the amount
classNamestring—Override container styles

Live demo