UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

35 lines (34 loc) 1.29 kB
import React from 'react'; import { InputMaskedProps } from '../../../../components/InputMasked'; import type { InputAlign, InputSize } from '../../../../components/Input'; import { FieldBlockWidth } from '../../FieldBlock'; import { FieldProps } from '../../types'; export type Props = FieldProps<number, undefined | number> & { innerRef?: React.RefObject<HTMLInputElement>; inputClassName?: string; currency?: InputMaskedProps['as_currency']; currencyDisplay?: 'code' | 'symbol' | 'narrowSymbol' | 'name' | false; percent?: InputMaskedProps['as_percent']; mask?: InputMaskedProps['mask']; step?: number; startWith?: number; decimalLimit?: number; allowNegative?: boolean; disallowLeadingZeroes?: boolean; prefix?: string | ((value: number) => string); suffix?: string | ((value: number) => string); minimum?: number; maximum?: number; exclusiveMinimum?: number; exclusiveMaximum?: number; multipleOf?: number; size?: InputSize; width?: FieldBlockWidth; align?: InputAlign; showStepControls?: boolean; }; declare function NumberComponent(props: Props): import("react/jsx-runtime").JSX.Element; declare namespace NumberComponent { var _supportsSpacingProps: boolean; } export default NumberComponent;