import { FC, Ref } from 'react'; import { TextFieldProps } from '../TextField'; export interface NumberFieldProps extends TextFieldProps { /** * Amount to increment or decrement the value by when using arrow keys or spinner controls. */ step?: number; /** * Minimum allowed value for the input. * Enforced both via HTML attributes and internal logic. */ min?: number; /** * Maximum allowed value for the input. */ max?: number; /** * Ref forwarded to the element. */ ref?: Ref; /** * Number of decimal places to round the input value to. * Useful for financial or scientific precision. */ precision?: number; /** * Enables changing the value with the mouse wheel when focused. */ changeOnWheel?: boolean; /** * Allows the field to be empty (null/undefined) instead of defaulting to 0. * Useful for optional numeric inputs. */ allowEmpty?: boolean; /** * Maximum number of digits allowed after the decimal point. * * This property controls numeric precision when the value is entered * or adjusted via increment/decrement actions. * * It is commonly used for currency values, measurements, or ratings * where fractional precision must be constrained. * * Example: * - `maximumFractionDigits={0}` → integers only * - `maximumFractionDigits={2}` → up to two decimal places */ maximumFractionDigits?: number; /** * Disables the entire NumberField. */ disabled?: boolean; } /** A NumberField is a UI component that allows users to input numeric values, often with support for validation, increment/decrement buttons, and a specified range */ export declare const NumberField: FC;