Examples
Documentation
Number input props
Parameters accepted by
{#include components/forms/number-input ... /}. Model mode: pass
numberInput=<NumberInput> built in Java instead — the Java tab on each example
shows the builder.
| Name | Type | Description |
|---|---|---|
* id
|
String | DOM id. |
* value
|
Number | Initial numeric value. |
min / max
|
Number | Bounds. Default unbounded. When set, the +/− buttons disable at the limit. |
unit
|
String | Trailing unit label (e.g. "hours"). |
disabled
|
boolean | Disables input + both buttons. |
Usage
Stepping vs. picking. Use number input when the user adjusts a value up/down (quantity, age,
count). For free-form numbers (price, weight) a plain type="number" text-input may be
friendlier.