Component 12 · Forms
Slider
Choose an approximate number or range.
Overview
Choose an approximate number or range. It transforms operator input into a labeled domain value while preserving recoverable input through validation, delay and offline queuing.
When to use
Use HE/Slider when you need to choose an approximate number or range. Keep its role distinct from transport freshness, animal-health severity and model confidence.
Example
<label class="he-slider"><span class="he-slider__meta">Session duration <output>15 min</output></span><input type="range" min="5" max="60" value="15"></label>Anatomy
1Persistent label
2Control
3Help or error
4Sync state
Anatomy stays identical in Pasture and Atlantic. A responsive layout may wrap or stack parts, but reading order and focus order remain equivalent.
Variants and states
Variants
States
Accessibility
Expose minimum, maximum, current value, unit, and keyboard increments.
- Maintain a visible keyboard focus indicator and a logical focus sequence.
- Never rely on colour alone for operational, freshness or severity state.
- Keep touch targets at least 44 × 44 px unless the target is an inline text link.
Cross-platform contract
| Surface | Canonical name | Status |
|---|---|---|
| Figma | HE/Slider | review |
| Web | .he-slider | implemented |
| Flutter | HeSlider | implemented |
| Token root | component.slider | generated |