UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

12 lines (11 loc) 556 B
import type { CurrencyISO } from '../../constants/currencies'; import type { FieldNumberProps as NumberFieldProps } from '../Number'; import type { PathStrict } from '../../types'; export type FieldCurrencyProps = NumberFieldProps & { /** * Defines what format to show the currency value in, e.g. `NOK` or `USD`. You can also set a path as the value, e.g. `/myCurrencyPath`. */ currency?: PathStrict | CurrencyISO; }; declare function Currency(props: FieldCurrencyProps): import("react/jsx-runtime").JSX.Element; export default Currency;