The slider component enhance user experience by providing a quick and intuitive way to adjust settings. It is particularly useful for adjusting parameters within a continuous or discrete scale, making it easier to explore multiple options efficiently

- 1.Label: describes the purpose of the slider (e.g., "Select coverage amount").
- 2.Helper text (Optional): provides additional guidance or context for the user.
- 3.Minimum value: the lowest selectable value (e.g., 0).
- 4.Track (bar): the line along which the thumb moves, visually representing the range.
- 5.Maximum value: the highest selectable value (e.g., 100).
- 6.Input field (Optional): displays the selected value, allowing manual input.
- 7.Tick marks (Optional): small indicators on the track that represent key increments.
- 8.Thumb: the draggable element that allows users to adjust the value.
- 9.Selected value indicator: highlights the current value along the track.
Sliders provide an intuitive way for users to adjust values dynamically by interacting with a draggable thumb. Depending on the implementation, sliders can offer various interaction methods and features to enhance usability.
- 1.Dragging the thumb
- Users can click and drag the thumb along the track to adjust the value.
- In discrete sliders, the thumb snaps to predefined increments.
- In continuous sliders, the thumb moves smoothly without fixed steps.
- 2.Clicking the track
- Users can click anywhere on the track to move the thumb directly to that position.
- In some implementations, clicking moves the thumb instantly, while in others, it may animate toward the new position.
- 3.Keyboard support
- Users can adjust the slider using the arrow keys for precise control:
- Left / Down arrow: decrease value.
- Right / Up arrow: increase value.
Sliders come in two variants: discrete and continuous. Choosing the right variant depends on whether precise steps or smooth adjustments are needed.