Quantity
Selector de cantidad con − y +, acotado por `min` y `max`.
import { Quantity } from '#LibComponents/react/atomic/quantity/quantity.component';position="left"<Quantity label="Adultos" name="adultos" min={1} max={9} onChange={fn} />Props del tipo del componente
| Prop | Tipo | Obligatorio | Default | Descripción |
|---|---|---|---|---|
defaultValue | number | no | — | |
value | number | no | — | Modo controlado opt-in: el estado interno se sincroniza con este valor. |
disabled | boolean | no | — | |
label | string | no | — | |
ariaLabel | string | no | — | Nombre accesible del input cuando no hay `label` visible. |
min | number | sí | — | |
max | number | sí | — | |
className | string | no | — | |
name | string | sí | — | |
onChange | (field: StaticFields, fName?: string) => void | sí | — | |
position | 'left' | 'top' | no | — | |
tabIndex | number | no | — |