@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
13 lines (12 loc) • 716 B
TypeScript
import type { NumberFormatAllProps, NumberFormatProps } from './NumberFormatBase';
export type NumberFormatNumberProps = Omit<NumberFormatAllProps, 'currency' | 'currencyDisplay' | 'currencyPosition' | 'compact'> & {
/**
* 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 NumberFormatNumber: {
(props: NumberFormatNumberProps): import("react/jsx-runtime").JSX.Element;
displayName: string;
};
export default NumberFormatNumber;