Skip to main content

Cash API

append currency to number

added in 1.5.0

Import​

import Cash from "@tlgr/fmt/react/cash";
// or
import { Cash } from "@tlgr/fmt/react";

Props​

NameTypeDefaultDescription
cashstringRequired. numeric representation
localestringen-USIntl.format locale
currencystringUSDIntl.format currency code
currencyDisplaystring$Intl.format currency display