Currency

Use this kit to display monetary amounts, typically on dashboards or other layouts to show an overview or summary. Pairing it with labels improves user understanding.
Cents are automatically ".00" unless otherwise overwritten (i.e. unit prop).

Variants


NOTE: The value passed into the amount prop can be either a string or numeric value.

Size


Alignment


No Symbol


Remove the "$" symbol by setting an empty string: symbol="".

Abbreviate Larger Amounts


Abbreviate larger amounts into thousands (K), millions (M), billions (B), and even trillions (T).

Matching Decimals


Use decimals="matching" when you want the full decimal amount displayed as a single number rather than split visually.

Unstyled


For alternative typography styles, you can pass a boolean prop called unstyled to the Currency kit and wrap it in any of our typography kits (Title, Body, Caption, etc.). This will allow the Currency kit to inherit any of our typography styles.

Comma Separator


The optional commaSeparator can be used to auto-format the use of commas as a thousands separator.

NOTE: If the value passed into the amount prop is already comma-dilineated, it will not add additional commas.

Negative


Small Currency kits have the negative sign on the lefthand side of the "$" symbol.

Null Display


To customize how the amount field appears when it is empty, use the nullDisplay prop and set it to the desired value you want to display.


Available Props