Did you know?dyk.si

Slider

A track with a knob — the thumb — that you drag to pick a value from a range.

<input type="range">

When to use it

For approximate values: volume, brightness, a price range.

Common mistake

Not for exact numbers; pair it with a text input.

Accessibility

Support arrow keys and expose the current value with aria-valuetext.

Name in code

HTML/CSS<input type="range">
React<Slider>
Jetpack ComposeSlider / RangeSlider
SwiftUISlider

Ready prompt for your coding agent

Add a Slider to this screen. What it is: A track with a knob — the thumb — that you drag to pick a value from a range. Implement with: <input type="range"> (HTML/CSS). Accessibility: Support arrow keys and expose the current value with aria-valuetext. When to use it: For approximate values: volume, brightness, a price range. Avoid: Not for exact numbers; pair it with a text input. Reuse the project's existing design tokens, spacing and component conventions.

Or compose a whole page from this element and others →

Prompts are in English for the most precise results with coding agents.