Use the following composition to build a NumberField:
Use the step prop to increment or decrement the value by a specific amount, in
this case 100.
The root component of the number field. Manages the value state and ramp behavior.
A container component that groups the input and buttons together with proper styling.
| Prop | Type | Default |
|---|---|---|
ref? $bindable | HTMLDivElement | null |
class? | string | - |
children? | Snippet | - |
The input element that displays and allows editing of the value.
| Prop | Type | Default |
|---|---|---|
ref? $bindable | HTMLInputElement | null |
class? | string | - |
A button that increments the value. Supports ramp behavior when held down.
A button that decrements the value. Supports ramp behavior when held down.