Number Input
Stepper with − and + buttons. Min/max/step enforced via Datastar expressions.
form number-input
Controls
min
max
step
Current props
min: ""max: ""step: ""
Usage
// declare signal in ancestor
ui.Signals("{count:1}")
form.NumberInput(form.NumberInputProps{
Signal: "count",
Min: 0,
Max: 99,
Step: 1,
})All combinations (18)
Enum controls only · bool and text use defaults
Props
| Name | Type | Options | Default |
|---|---|---|---|
min | enum | 0, -10 | 0 |
max | enum | 10, 100, 999 | 10 |
step | enum | 1, 5, 10 | 1 |