Input Number

The InputNumber component is a custom numeric input.

# Basic Usage


InputNumber Component

PropTypeDescription
classNamestringAdditional CSS classes.
namestringIdentifier for the input in form submission.
labelstringLabel text for the input field.
optionsarrayList of suggested values for the input.
alignstringText alignment (left, center, right).
prefixstringPrefix text displayed before the input value.
postfixstringPostfix text displayed after the input value.
toStringbooleanConverts the value to a string.
funcDeletefunctionFunction to handle deletion of selected value.
registerfunctionFunction to register the input with the useForm hook.
requiredbooleanSpecifies if the field is required.
minValuenumberMinimum allowed value.
maxValuenumberMaximum allowed value.
focusedbooleanWhether the input should be focused on mount.
autoCompletebooleanEnables or disables autocomplete (on, off).
disabledbooleanDisables interaction with the input field.