Slider
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
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
| Example | State | When to use |
|---|---|---|
undefined 0200 | Enabled | The Slider is visible and ready for user interaction. |
undefined 0200 | Hover | Indicates interactivity when a user hovers over the Slider. |
undefined 0200 | Focus | Indicating accessibility control such as keyboard |
undefined 0200 | Active | Applied during interaction, showing the current value. |
undefined 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.