Skip to content
nexubDesign System
v2.4.0

Components · Data Display

Amount

Betav1.5.0 → v1.6.0

Honest money: Intl formatting, tabular numerals, the currency’s minor unit and a true minus sign.

import { Amount } from '@nexub/react';

Examples

Display

Gains and losses

Props

Props
PropTypeDefaultDescription
valuerequirednumber—The amount.
currencyrequiredstring—ISO 4217 code, e.g. "USD".
localestring—BCP 47 locale. Defaults to the user's.
size'sm' | 'md' | 'lg' | 'display''md'display is a hero figure with a quieter symbol and minor units.
tone'neutral' | 'auto''neutral'auto colours gains success and losses error.
signDisplayIntl signDisplay—e.g. 'exceptZero' to show + on gains.
animatebooleanfalseRoll the digits to new values (NumberTicker). The first render never animates.