Cash API
append currency to number
added in 1.5.0Import​
import Cash from "@tlgr/fmt/react/cash";
// or
import { Cash } from "@tlgr/fmt/react";
Props​
Name | Type | Default | Description |
---|---|---|---|
cash | string | Required. numeric representation | |
locale | string | en-US | Intl.format locale |
currency | string | USD | Intl.format currency code |
currencyDisplay | string | $ | Intl.format currency display |