s72
  • Two-handle range

    data-range since 0.1.0

    Two native sliders over one track, for a span rather than a number. Each handle is a real <input type="range">, so each one is reachable, draggable and typeable by itself.

    Basic

    Budget 20–80
    html
    <fieldset data-range>
      <legend>Budget</legend>
      <input type="range" name="min" min="0" max="100" value="20" aria-label="Lowest">
      <input type="range" name="max" min="0" max="100" value="80" aria-label="Highest">
      <output>20–80</output>
    </fieldset>

    Drag either handle or use the arrow keys. Push one past the other and it takes the other along.

    Notes