Atoms - Circuit design system

in development

Slider

Description

A single-value slider allows users to select one value by dragging a handle along a track. It is most effective for continuous inputs where approximate selection is acceptable, and typing an exact number is unnecessary.


Use Cases

When Not to Use


Usage

Labels: Always display minimum and maximum values for context. Display the currently selected value dynamically beside the slider. Add units, symbols, or percentages where relevant.

Defaults: Provide a logical starting value rather than defaulting to extremes.

Handles: Use one handle only. Ensure it is visually distinct and easy to grab on both desktop and mobile. Ensure that the active selection range is visually distinct from the inactive range.

Increments: Define a step size if users shouldn’t select every possible value (e.g., volume in 10% increments). Avoid steps so small that sliding becomes frustrating.

Keyboard Interaction: Enable full keyboard support (Tab to focus the handle, Arrow keys to move in steps).

Accessbility: Some users may struggle with dragging - provide a number input or select field alternative. Let users click anywhere on the track to move the handle instead of forcing drag interactions.

Feedback: Use visual changes (e.g., track fill color) to indicate progress. Provide subtle animations when moving the handle. On mobile, haptic feedback can improve the experience.

Example

Example Range Slider
Example Range Slider with steps