Range
A controlled one- or two-thumb numeric range.
Props
| Prop | Type | Required |
|---|---|---|
accessibilityHint | string | No |
enabled | boolean | No |
label | string | Yes |
max | number | No |
min | number | No |
semantics | string | No |
step | number | No |
value | any | Yes |
Types describe evaluated values. Literal native attributes use the declared decoder; use bind-* for expressions. any still has the semantic constraints listed below. Common document attributes (class, state, show, etc.) are separate from props.
Example
<Column state="{amount:25}"><Range label="Amount" model="amount" min="0" max="100" step="1" /></Column>
Defaults, values, and validation
min/max default 0/100, bounded to ±1,000,000 and min < max. step defaults 1, must be positive and no larger than span. value is one number or ordered pair in bounds.
Unknown props, wrong types, missing required props, and unsupported child structure fail validation. Use attributes for evaluated input and diagnostics for recovery.
Events
on-change
change carries {value: ...} with the controlled value. See this primitive’s value rules; model assigns this field before the explicit handler.
Local commands
No local commands.