Slider

Sliders are used to set linear values while providing intuitive visual feedback.

Overview

Sliders allow users to view a selected value, or range of information. Sliders provide a visual indicator, or handle of the current value, which is adjustable. This allows the user to increase or decrease the value(s) by moving the Slider's handle along a horizontal track.

Configurable properties support the ability to add ticks, labels with labelTicks, precision handles with precise, and a histogram with hasHistogram.

Usage

  • When offering the user a numeric adjustable value or range
  • Adjusting a buffer area
  • Opacity or transparency control
  • Volume control
  • Adjusting or setting a map extent
  • A video timeline

Sample

Accessibility

Slider should be accompanied by a Label, which provides context of the intent to support assistive technologies.

Keyboard navigation

KeyFunction
Arrow leftReduces the component's value by the step (default value is "1").
Arrow rightIncrements the component's value by the step (default value is "1").
Arrow downReduces the component's value by the step (default value is "1").
Arrow upIncrements the component's value by the step (default value is "1").
TabMoves focus in and out of the component. For range values where minValue and maxValue are set and the currently focused item is the minimum value, focus will proceed to the maximum value.
Tab and ShiftMoves focus in and out of the component. For range values where minValue and maxValue are set and the currently focused item is the maximum value, focus will proceed to the minimum value.

API reference

Properties

Events

Methods

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.