Formularios v1.0.0

Campo numérico

Campo numérico con botones de incremento/decremento, restricciones mín/máx y tamaño de paso. Ofrece una mejor experiencia de usuario que los campos numéricos nativos con estilo consistente entre navegadores. Soporta texto de prefijo/sufijo, múltiples tamaños, estados de error y repetición al mantener presionados los botones.

Vista Previa y Código

Opciones

Nombre Tipo Predeterminado Descripción
value Integer/Float nil Initial numeric value
min Integer/Float nil Minimum allowed value
max Integer/Float nil Maximum allowed value
step Integer/Float 1 Increment/decrement step size
label String nil Label text displayed above the input
hint String nil Hint text displayed below the input
size Symbol :md Input size: :sm, :md, or :lg
prefix String nil Prefix text displayed inside the input (e.g. "$")
suffix String nil Suffix text displayed inside the input (e.g. "kg")
disabled Boolean false Whether the input is disabled
error String nil Error message — turns the border red and displays below the input
name String nil Form field name attribute
placeholder String nil Placeholder text shown when empty

Registro de Cambios v1.0.0

- v1.0.0: Initial release with increment/decrement buttons, min/max/step support
- Hold-to-repeat on increment/decrement buttons (400ms delay, 75ms repeat)
- Keyboard arrow-key support (ArrowUp/ArrowDown)
- Prefix/suffix text, multiple sizes, error states, and disabled state
- Full dark mode support

Obtener Acceso Completo

Desbloquea el código fuente de este componente y todos los demás. Un solo pago para acceso de por vida.

Obtener Acceso