AmountnewNEW
Component for displaying monetary values
Usage
Amount Props
Prop | Type | Default |
---|---|---|
value | number | 0 |
currency | string | 'USD' |
valueInMinorUnits | boolean | true |
locale | string | 'en-US' |
hideDecimals | boolean | false |
currencyDisplay | "symbol" | "code" | "name" | 'symbol' |
minimumFractionDigits | number | undefined (uses currency's default) |
maximumFractionDigits | number | undefined (uses currency's default) |
groupDigits | boolean | true |