Number Input - Keep React

Number Input Component is a user interface element designed for collecting numeric input from users. It provides a field where users can enter numerical values, such as integers or decimals, using keyboard input or arrow buttons.

Table of Contents#

Default Number Input#

Default Number Input a simple numeric input field with two buttons for incrementing and decrementing the value.

Sizes Of Number Input#

The NumberInput component in the Keep React offers three available sizes: "sm" "md" and "lg".

Disabled Number Input#

API Reference#

Explore the available props for the number input component

PropertyDescriptionTypeDefault
valueThe current value of the NumberInput.number100
sizingSize of the NumberInput component.
sm
md
lg
md
disabledIndicates whether the NumberInput is disabled.booleanfalse
helperTextAdditional helper text to assist the user.ReactNodenull
iconAn optional icon to display within the NumberInput component.ReactNodeNone
iconPositionPosition of the icon within the NumberInput.
right
left
None
setValueFunction to update the value of the NumberInput.FunctionFunction