Number Control
Numeric input field with optional constraints and step values.
Options
Section titled “Options”| Option | Type | Default | Description |
|---|---|---|---|
label | string | - | Field label |
control | string | number | Control type |
placeholder | string | - | Placeholder text |
default | number | - | Default value |
min | number | - | Minimum allowed value |
max | number | - | Maximum allowed value |
step | number | - | Step increment |
Example
Section titled “Example”{ "attributes": { "itemsPerPage": { "type": "number", "default": 10, "wbs": { "label": "Items Per Page", "control": "number", "min": 1, "max": 100, "step": 5 } } }}Template Usage
Section titled “Template Usage”<p>Showing {{ attributes.itemsPerPage }} items per page</p>Use Case
Section titled “Use Case”Use Number for:
- Counts and quantities
- Sizes and dimensions
- Any numeric value requiring precise input