Slider
Slider for a value within a range.
BackgroundGridAccent
Corners
SharpRound
Shadow
NoneStrong
Motion
NoneBounce
<style>
.ux-slider{display:grid;gap:10px;width:100%;max-width:240px;font:500 14px system-ui;color:var(--fg,#14151a)}
.ux-slider input{-webkit-appearance:none;appearance:none;width:100%;height:28px;margin:0;background:transparent;cursor:grab}
.ux-slider input:active{cursor:grabbing}
.ux-slider input::-webkit-slider-runnable-track{height:8px;border-radius:var(--rp,99px);background:linear-gradient(to right,var(--accent,#cc4a26) var(--p,60%),var(--line,#cfd2da) var(--p,60%))}
.ux-slider input::-webkit-slider-thumb{-webkit-appearance:none;width:26px;height:26px;margin-top:-9px;border-radius:50%;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.4),0 0 0 1px rgba(0,0,0,.06);transition:transform var(--dur,.15s) var(--ease,ease)}
.ux-slider input:active::-webkit-slider-thumb{transform:scale(1.12)}
.ux-slider input::-moz-range-track{height:8px;border-radius:var(--rp,99px);background:var(--line,#cfd2da)}
.ux-slider input::-moz-range-progress{height:8px;border-radius:var(--rp,99px);background:var(--accent,#cc4a26)}
.ux-slider input::-moz-range-thumb{width:26px;height:26px;border:0;border-radius:50%;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.4)}
.ux-slider input:focus-visible{outline:2px solid var(--accent,#cc4a26);outline-offset:4px;border-radius:var(--rp,99px)}
</style>
<div class="ux-slider">
<label for="ux-vol">Volume</label>
<input id="ux-vol" type="range" min="0" max="100" value="60" style="--p:60%" oninput="this.style.setProperty('--p',this.value+'%')">
</div>When to use it
Reach for this when someone has to pick from a small, visible set of options rather than typing free text. It works best when every choice fits on screen at once.
Accessibility
Check that it reaches every state with the keyboard alone before you ship it, and keep the focus ring instead of removing it for looks. It has no JavaScript dependency, so it keeps working if a script fails to load, and it is built on native form controls or semantics rather than divs pretending to be one. Colors are read from CSS custom properties, so they follow your light or dark theme and you can raise contrast globally without touching this component.