Android — Material 3
JS behaviour
Slider
The M3 slider with its hollow handle, a bubble value label while dragging, custom steps, and the two-handle range variant; end icons are official M3 too.
Real scenarios
The component as it is used in a product — not a specimen grid.
Audio quality, by hand
Drag the hollow handle — the bubble rises only while you drag, the stepped rail ticks in fives, and the range answers both of your fingers.
Audio quality
Bitrate
Gain
Steps of five — arrow keys move it too.
Frequency range
The parts, naked
The signature 4 px gap between handle and rail, the stop dot at the end of the track, and the value bubble on Material’s emphasized curve.
Important props
| Prop | Type | Default | What it does |
|---|---|---|---|
| handle | shape | 'gap · 4px' | The handle sits 4px off the track — M3’s signature gap. |
| value-label | bubble | 'while-dragging' | The value bubble rises above the handle only while dragging. |
| step | number | 1 | The step; arrow keys move it too. |
Snippet
<div class="m3sld">
<input type="range" min="0" max="100" value="40" step="5">
<span class="m3sld-bubble">40</span>
</div>
<style>
.m3sld input { appearance: none; inline-size: 100%; block-size: 16px; }
.m3sld input::-webkit-slider-runnable-track { block-size: 16px; border-radius: 999px;
background: linear-gradient(to right, #6750A4 var(--fill), #E6E0E9 var(--fill)); }
.m3sld input::-webkit-slider-thumb { appearance: none; inline-size: 20px; aspect-ratio: 1;
border-radius: 50%; border: 2px solid #6750A4; background: #fff; margin-block-start: -2px; }
.m3sld:focus-within .m3sld-bubble, .m3sld:active .m3sld-bubble { opacity: 1; translate: 0 -6px; }
</style>