Slider (Multi-Thumb)

Two independently labeled thumbs define a hotel price range. They share a scale, cannot cross, and remain in a stable minimum-then-maximum tab order.

Corresponding W3C APG example

Example

Hotel price per night

$100 to $400 per night

Keyboard interaction

Arrow keys change one step; Page Up/Down change a larger step. Home/End select the minimum/maximum. Drag the native range thumb with a mouse or touch.

Events

Listen on the widget or delegate to <axxy-scope> or document. All custom events bubble.

  • axxy-slider-change — Dispatched when the slider value changes. (target: <input type="range">, detail: { value: number })
  • input / change — Standard range input and change events. (target: <input type="range">, detail: Native Event)

Events reference and examples

Example HTML

<axxy-scope>
  <fieldset aria-roledescription="range slider">
    <legend>Hotel price per night</legend>
    <div class="multi-range-track">
      <input aria-label="Minimum price" type="range" min="0" max="500" step="10" value="100">
      <input aria-label="Maximum price" type="range" min="0" max="500" step="10" value="400">
    </div>
    <p>
      <output data-price-output>$100 to $400 per night</output>
    </p>
  </fieldset>
</axxy-scope>