UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

17 lines (16 loc) 885 B
import type { NumberFormatAllProps, NumberFormatProps } from './NumberFormatBase'; export type NumberFormatCurrencyProps = Omit<NumberFormatAllProps, 'compact'> & { /** * Currency code (ISO 4217) or `true` to use the default `NOK`. Defaults to `true` when using `NumberFormat.Currency`. Uses two decimals by default. */ currency?: NumberFormatProps['currency']; /** * Shortens any number or currency including an abbreviation. Available on both `NumberFormat.Number` and `NumberFormat.Currency`. It gives you zero decimal by default `decimals={0}`. Use either `short` or `long`. Defaults to `short` if `true` is given. */ compact?: NumberFormatProps['compact']; }; declare const NumberFormatCurrency: { (props: NumberFormatCurrencyProps): import("react/jsx-runtime").JSX.Element; displayName: string; }; export default NumberFormatCurrency;