Advanced inputs · SU-321
A range slider shows its values and takes typed numbers
Flip between the version shibroUI flags and the one it ships. The marks and callouts show what changes.
-
Thumbs
12px · no value shown
-
Range
typed · $40 – $220 -
Thumbs
24px · 44px hit area
Price per night
$0$500
Price per night
$40–$220
$0$500
-
Labels
only $0 and $500
-
Min and max
$0 and $500
What changes
- Bad
- Two
12pxthumbs and only$0and$500at the ends: the selected range cannot be read or typed. - Good
- Two
24pxthumbs with44pxhit areas, a live$40 – $220in two number inputs above the track, and$0and$500at the ends.
The rules
-
SU-321
Sliders show their value and pair with a number input when precise. Label above, the current value always visible, min and max labels at the ends, and a track of about 4px with a visible thumb of 20-24px inside a 44px hit area. Ranges (a price filter) use two thumbs plus min and max number inputs and a minimum gap between thumbs. Ranges as wide as 1-1000, or as narrow as 1-3, do not use a slider.