Open this example in the interactive library
Source code
<style>
.demo {
width: 12rem;
accent-color: #1d4ed8;
}
</style>
<label>Volume <input class="demo" type="range" value="70" /></label>
Use a custom-sized native range control with native CSS. The preview includes a small shared demo stylesheet.
Open this example in the interactive library
<style>
.demo {
width: 12rem;
accent-color: #1d4ed8;
}
</style>
<label>Volume <input class="demo" type="range" value="70" /></label>