Skip to content

NumberInput

A field that allows user input of numeric values.

Please enter your age
import { NumberInput } from '@fintech-sandpit/ui/react';
return (
<NumberInput
label="Name"
placeholder="E.g. 25"
hint="Please enter your age"
error="Invalid age"
/>
);
NameTypeRequiredDefaultDescription
valuestringControlled value of the text input
defaultValuestringDefault (uncontrolled) value of the text input
namestringName of the input element
orientationOrientationverticalOrientation of the text input
sizeSizemdSize of the text input
labelstringLabel of the text input
hintstringHelper text of the text input
errorstringError text of the text input
requiredbooleanfalseWhether the text input is required
invalidbooleanfalseWhether the text input is invalid
readOnlybooleanfalseWhether the text input is read only
disabledbooleanfalseWhether the text input is disabled
placeholderstringPlaceholder of the text input
NameTypeDescription
onChange(value: string) => voidEvent handler for when the value changes
type Orientation = 'horizontal' | 'vertical';
type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';