Enter a number.
An input field to enter a number value. It supports prefix and suffix icons, and can display stepper buttons for granular control.
Properties
Available properties for Mobile Multiselect. You can write JavaScript almost anywhere in Retool to manipulate or read information about components.
allowNegativeNumbers boolean
Whether to allow negative numbers.
customValidation string
A JavaScript conditional statement for custom validation logic. If customValidation
evaluates to a string, validation fails and it is rendered as the the error message. An empty or nullish value is treated as valid input.
disabled boolean
Whether the component is disabled to prevent user interaction.
formDataKey string
When nested within a Form component, the key used to map default values from the form's initialData
.
iconAfter IconKey
The icon to display after the primary content.
iconBefore IconKey
The icon to display before the primary content.
id string
The name of the component.
invalid boolean
Whether the input value has failed validation.
label string
Text label for the input
labelCaption string
The additional text to display with the label.
maxLength number | null
The maximum length of text allowed.
minLength number | null
The minimum length of text allowed.
placeholder string
The text to display when no value is set.
pluginType string
The component type.
required boolean
Whether an input value is required.
showStepper boolean
Whether to show buttons to increment and decrement the value.
validationMessage string
The message to be rendered when the input is invalid.
value (string │ number │ boolean │ null │ undefined)
The value of the component.