InputNumber
Campo numérico controlado, con el mismo contrato que `Input`.
import { InputNumber } from '#LibComponents/react/atomic/inputnumber/inputnumber.component';hasError={true}<InputNumber label="Noches" name="noches" value={v} onChange={fn} />Props del tipo del componente
| Prop | Tipo | Obligatorio | Default | Descripción |
|---|---|---|---|---|
onChange | (inputValue: StaticFields) => void | sí | — | |
onClear | () => void | no | — | |
onFocus | (name: string) => void | no | — | |
onBlur | () => void | no | — | |
onFormError | (error: ErrorOnField) => void | no | — | |
className | string | no | — | |
customErrorMessage | string | no | — | |
disabled | boolean | no | — | |
errorMark | boolean | no | — | |
hasError | boolean | no | — | |
label | string | sí | — | |
name | string | sí | — | |
placeholder | string | no | — | |
required | boolean | no | — | |
suffix | string | no | — | |
tabIndex | number | no | — | |
value | string | sí | — | |
validPatterns | RegExp[] | no | — | |
labelFloating | boolean | no | — |