RangeField
RangeField
Interaction states
A range always carries a value, so the rows are at minimum andpartially filled rather than the family's usual empty/filled pair.
| State | default | hover | focus | active |
|---|---|---|---|---|
| at minimum | ||||
| partially filled |
Disabled
| at minimum | |
|---|---|
| partially filled |
Invalid
| out of policy, with a hint | Pick at least 10 %. |
|---|---|
| out of policy |
Variants
| stepped (step matches tick values) | |
|---|---|
| resized (thumb 2em, track 0.75em) | |
| scales with text (font-size only) | |
| vertical, min at the bottom (default) | |
| vertical, min at the top | |
| datalist present, no marks drawn |
Live demo
Native reference
The browser's own track, thumb and <datalist> tick marks. Compare the marks here with the variant above, which has the same <datalist> and draws none.
| unstyled range with datalist |
|---|