@wfp/react
Version:
WFP UI Kit
47 lines (31 loc) • 1.16 kB
text/mdx
## Usage
**NumberInput** are used to let the user enter a number. They include built-in validation to reject non-numerical entries. They provide stepper arrows to let the user increase and decrease the value using their mouse or by simply tapping with a fingertip.
- Inputs with custom input elements but standardized labelText and helperText
```jsx
<Input
formItemClassName={classes}
invalid={invalid}
invalidText={invalid && invalid.message}
labelText={labelText}
>
{() => (
<Select
className="wfp--react-select-container"
classNamePrefix="wfp--react-select"
/>
)}
</Input>
);
```
#### When not to use
- Do not replace existing components
## Related
[TextInput](?path=/docs/components-forms-textinput--regular)
[TextArea](?path=/docs/components-forms-textarea--regular)
[Checkbox](?path=/docs/components-forms-checkbox--regular)
[RadioButton](?path=/docs/components-forms-radiobutton--regular)
[Search](?path=/docs/components-forms-search--regular)
[NumberInput](?path=/docs/components-forms-numberinput--regular)
[InputGroup](?path=/docs/components-forms-inputgroup--regular)
```
```