Compose the group.
quantity-field.tsx
NumberField
<div>| Prop | Type | Default | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| class | string | — | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
From Base UINumberField.RootBase UI docs | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| id | string | — | The id of the input element. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| min | number | — | The minimum value of the input element. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| max | number | — | The maximum value of the input element. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
NumberFieldScrubArea
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
From Base UINumberField.ScrubAreaBase UI docs | |||
| direction | "horizontal""vertical" | "horizontal" | Cursor movement direction in the scrub area. |
| pixel | number | 2 | Determines how many pixels the cursor must move before the value changes. A higher value will make scrubbing less sensitive. |
| teleport | number | — | If specified, determines the distance that the cursor may move from the center of the scrub area before it will loop back around. |
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
NumberFieldScrubAreaCursor
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
NumberFieldGroup
<div>NumberFieldInput
<input>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
From Base UINumberField.InputBase UI docs | |||
| aria-roledescription | string | 'Number field' | A user-friendly description of the input's role for assistive tech. This is a role description, not an accessible name — use Field.Label or aria-label to name the control. |
| render | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render. | |
| style | — | Style applied to the element, or a function that returns a style object based on the component's state. | |
| ...props | <input> attributes | — | Every other attribute goes to the <input>, with a ref. |
NumberFieldDecrement
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
NumberFieldIncrement
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| class | string | — | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
| Up ArroworDown Arrow | Steps by step. Shift steps by largeStep, and Alt by smallStep. |
|---|---|
| Page UporPage Down | Steps by largeStep. |
| HomeorEnd | Goes to min or max. |
- Input GroupOne frame around an input or a text area and the parts next to it: icons, text, key hints, and buttons.
- SliderPick Slider when the number is a position in a range that people drag to.
- FormA form around its fields. It sets when every field checks its value, shows server errors on the right field, and gives your submit the values.
- InputPick Input for text that only looks like a number, such as a code or a phone number.
Built with
Installs with Number Field
- Components
- Input Group







