Slider

Android · iOS · Web
The Slider component allows users to select a value along a defined scale, using a single handle with an optional tooltip to display the current value.

Overview

The Slider component is an interactive UI element that allows users to select a single value along a predefined scale. It is ideal for tasks requiring continuous or discrete adjustments, such as setting volume, selecting a price range, or adjusting brightness levels. The component features a single handle for interaction, accompanied by a tooltip that provides real-time feedback on the selected value, ensuring clarity and precision during use. Different platform-specific variations (web, iOS, Android) are available and named accordingly in the Figma library.

Live demo

0100

Usage

Do

  • Use a Slider for continuous or discrete inputs where visual feedback enhances user understanding (e.g., setting a preference).

  • Clearly label the Slider with context or scale indicators, and ensure the tooltip provides precise, real-time feedback on the current value.

  • Support swipe gestures for mobile interactions and ensure the Slider has enough clear space around it for touch interactions.

Don't

  • Avoid using Sliders for precise inputs unless combined with a numeric input field in cases like entering a specific value.

  • Avoid omitting labels, tooltips, or context, as this can confuse users.

  • Avoid placing multiple Sliders too close together, leading to a cluttered interface.

Placement

  • Place the Slider near the content or settings it modifies to maintain contextual relevance.

  • Ensure the Slider adapts well to the platform’s specific design standards (web, iOS, or Android).

States and interactions

ExampleStateWhen to use
0200
Enabled

The Slider is visible and ready for user interaction.

0200
Hover

Indicates interactivity when a user hovers over the Slider.

0200
Focus

Indicating accessibility control such as keyboard

0200
Active

Applied during interaction, showing the current value.

0200
Disabled

Used when the Slider is visible but not currently interactive.

Accessibility

  • Ensure the Slider is operable via keyboard and touch gestures, with clear focus and active states.

  • Use ARIA attributes like aria-valuemin, aria-valuemax, and aria-valuenow to announce scale and current value to assistive technologies.

  • Test the Slider across devices and browsers to confirm accessibility and responsiveness.

iOS guidance

Along with the guidance above, there is some iOS specific guidance for this component.

  • Adhere to Apple's Human Interface Guidelines (HIG) for iOS design principles and recommendations.

  • Use standard system Buttons provided by iOS to ensure consistency within the iOS ecosystem.

  • Follow iOS guidelines for placing Buttons in toolbars and navigation bars, using standard Button types for these contexts.

  • Provide visual feedback when the Button is clicked. Users should be able to easily see when a Button has focus. Use a clear and distinct focus state, such as a visible outline or change in colour.