ComponentsDisplay

Amount

A number or a sum of money formatted for the current locale.

Features9APIThemingAccessibility

Basic

A number, and the same number as money. The currency symbol is muted.

1,234.5$1,234.5€1,234.5₴1,234.5

Formats

format sets the digits: 1.0-2 (default), 1.2-2, 1.0-0, 1.2-4 for small prices.

1.0-2
$1,234.5
1.2-2
$1,234.50
1.0-0
$1,235
1.2-4
$0.0025

Currency display

currencyDisplay: narrowSymbol (default), symbol, code or name.

$42$42USD 4242 US dollars

Compact

notation="compact" shortens large numbers.

1.25K48.2K$3.4M

Signs

signColor colours gains and losses, showSign adds +.

+12.4-3.10.0

Empty and zero

No value shows a dash (emptyText); zero is muted. strong makes the number bolder.

—n/a$0$980

Locales

The current tectra locale is used by default; locale sets another one.

en-US
€1,234,567.89
de-DE
1.234.567,89 €
uk-UA
1 234 567,89 €
fr-FR
1 234 567,89 €
ja-JP
€1,234,567.89

In a table

Amounts line up in a table with tabular digits.

Orders
OrderTotalChange
#1042$1,290.00+4
#1043$86.50-12
#1044$12,450.750

Design tokens

dt changes the look of one amount.

$2,400