UNPKG

rsuite

Version:

A suite of react components

43 lines (28 loc) 1.11 kB
import * as React from 'react'; import { StandardProps, TypeAttributes } from '../@types/common'; export interface InputNumberProps<T = number | string> extends StandardProps { /** Button can have different appearances */ buttonAppearance?: TypeAttributes.Appearance; /** An input can show that it is disabled */ disabled?: boolean; /** Minimum value */ min?: number; /** Maximum value */ max?: number; /** The value of each step. can be decimal */ step?: number; /** Current value of the input. Creates a controlled component */ value?: T; /** Initial value */ defaultValue?: string; /** Sets the element displayed to the left of the component */ prefix?: React.ReactNode; /** Sets the element displayed on the right side of the component */ postfix?: React.ReactNode; /** An Input can have different sizes */ size?: TypeAttributes.Size; /** The callback function when value changes */ onChange?: (value: T, event?: React.SyntheticEvent<any>) => void; } declare const InputNumber: React.ComponentType<InputNumberProps>; export default InputNumber;