Optionalaria-Optionalaria-Identifies the element (or elements) that provide a detailed, extended description for the object.
Optionalaria-Defines a string value that labels the current element.
Optionalaria-Identifies the element (or elements) that labels the current element.
OptionalautoWhether the element should receive focus on render.
OptionalchildrenThe children of the component. A function may be provided to alter the children based on component state.
OptionalclassOptionalcommitControls the behavior of the number field when the user blurs the field after editing. 'snap' will clamp the value to the min/max values, and snap to the nearest step value. 'validate' will not clamp the value, and will validate that the value is within the min/max range and on a valid step.
OptionaldecrementA custom aria-label for the decrement button. If not provided, the localized string "Decrement" is used.
OptionaldefaultThe default value (uncontrolled).
OptionaldescriptionOptionaldirOptionalformThe <form> element to associate the input with.
The value of this attribute must be the id of a <form> in the same document.
See MDN.
OptionalformatFormatting options for the value displayed in the number field. This also affects what characters are allowed to be typed by the user.
OptionalhiddenOptionaliconAn icon to render before the input
OptionalidThe element's unique identifier. See MDN.
OptionalincrementA custom aria-label for the increment button. If not provided, the localized string "Increment" is used.
OptionalinertOptionalisWhether the input is disabled.
OptionalisWhether the input value is invalid.
OptionalisWhether the input can be selected but not changed by the user.
OptionalisWhether user input is required on the input before form submission.
OptionalisEnables or disables changing the value with scroll.
OptionallabelOptionallangOptionalmaxThe largest value allowed for the input.
OptionalminThe smallest value allowed for the input.
OptionalnameThe name of the input element, used when submitting an HTML form. See MDN.
OptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonHandler that is called when the input value is about to be modified. See MDN.
OptionalonHandler that is called when the element loses focus.
OptionalonHandler that is called when the value changes.
OptionalonOptionalonOptionalonHandler that is called when a text composition system completes or cancels the current text composition session. See MDN.
OptionalonHandler that is called when a text composition system starts a new text composition session. See MDN.
OptionalonHandler that is called when a new character is received in the current text composition session. See MDN.
OptionalonOptionalonOptionalonHandler that is called when the user copies text. See MDN.
OptionalonHandler that is called when the user cuts text. See MDN.
OptionalonOptionalonOptionalonHandler that is called when the element receives focus.
OptionalonHandler that is called when the element's focus status changes.
OptionalonOptionalonOptionalonHandler that is called when the input value is modified. See MDN.
OptionalonHandler that is called when a key is pressed.
OptionalonHandler that is called when a key is released.
OptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonHandler that is called when the user pastes text. See MDN.
OptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonHandler that is called when text in the input is selected. See MDN.
OptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalplaceholderText to display in the input when it has no value
OptionalrenderOverrides the default DOM element with a custom render function. This allows rendering existing components with built-in styles and behaviors such as router links, animation libraries, and pre-styled components.
Requirements:
<button> is expected, you cannot render an <a>).OptionalsecondaryOptionalsizeThe size of the number field
OptionalslotA slot name for the component. Slots allow the component to receive props from a parent component.
An explicit null value indicates that the local props completely override all props received from a parent.
OptionalstepThe amount that the input value changes with each increment or decrement "tick".
OptionalstyleThe inline style for the element. A function may be provided to compute the style based on component state.
OptionaltranslateOptionalvalidateA function that returns an error message if a given value is invalid.
Validation errors are displayed to the user when the form is submitted
if validationBehavior="native". For realtime validation, use the isInvalid
prop instead.
OptionalvalidationWhether to use native HTML form validation to prevent form submission when the value is missing or invalid, or mark the field as required or invalid via ARIA.
OptionalvalueThe current value (controlled).
Identifies the element (or elements) that describes the object.