{"repo":"react-component/input-number","free":true,"listed":false,"github":"https://github.com/react-component/input-number","clone":"git clone https://github.com/react-component/input-number.git","description":"🔢 Accessible React number input with precision, formatting, keyboard, and wheel support.","language":"TypeScript","stars":323,"topics":["javascript","react","react-native","antd","antd-mobile","ant-design","react-component"],"license":"MIT","category":"mobile-apps","readme_excerpt":"@rc-component/input-number Part of the Ant Design ecosystem. 🔢 Accessible React number input with precision, formatting, keyboard, and wheel support. English 简体中文 Highlights - Controlled and uncontrolled numeric input modes. - Decimal precision, custom parser, formatter, and decimal separator support. - Keyboard stepping, mouse wheel stepping, and custom step handlers. - Prefix, suffix, spinner controls, and semantic classNames / styles slots. - TypeScript generic value typing for number and string based value flows. Install Usage Examples Run the local dumi site: Then open http://localhost:8000 . API InputNumber Property Type Default Description --- --- --- --- autoFocus boolean false Focus the input when mounted. changeOnBlur boolean true Commit value changes on blur. changeOnWheel boolean false Allow value changes from the mouse wheel. className string - Class name for the root element. classNames Partial - Semantic class names for input-number slots. controls boolean true Show increment and decrement controls. decimalSeparator string - Decimal separator used by the display formatter. defaultValue T - Initial value. disabled boolean false Disable the input. downHandler ReactNode - Custom decrement control. formatter (value: T \\ undefined, info: { userTyping: boolean; input: string }) = string - Format the displayed value. inputMode string - Native input inputMode attribute. keyboard boolean true Enable keyboard stepping. max T - Maximum value. min T - Minimum value. mode ","default_branch":null,"files":null,"tree":[],"storefront":"/r/react-component","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/react-component/input-number/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}