Getting Started
Foundations
Components
Search for a command to run...
Sliders provide an intuitive way for users to select numeric values by dragging a handle along a track. They're particularly effective when the precise value is less important than the relative position within a range, such as volume controls, brightness settings, or filter ranges. Sliders support both single values and range selections with two handles, making them versatile for different selection scenarios. They provide immediate visual feedback and are more engaging than text inputs for certain types of numeric selection.
Use sliders when users need to select from a continuous range of values where the exact number is less critical than the general magnitude. They work well for settings and controls where visual adjustment is more intuitive than typing. For precise numeric input or when exact values matter, consider using number inputs instead. Sliders should always include visible value indicators or labels to help users understand the current selection.
import { Slider } from "@strongtie/design-system/slider"All components accept standard HTML attributes and React props.
Components can be styled using the className prop. The design system uses Tailwind CSS for styling.
CSS classes used by this component:
sliderEnsure proper accessibility attributes are added when implementing this component.