JSFiddle - React, Tailwind, and code Playground
HTML
<input type="range">
CSS
input[type=range] {
/*removes default webkit styles*/
-webkit-appearance: none;
/*required for proper track sizing in FF*/
width: 300px;
}
input[type=range]::-webkit-slider-runnable-track {
width: 300px;
height: 10px;
background: #009999;
border: none;
border-radius: 3px;
}
input[type=range]::-webkit-slider-thumb {
-webkit-appearance: none;
border: none;
height: 20px;
width: 20px;
border-radius: 50%;
background: #99FFFF;
margin-top: -4px;
}
input[type=range]:focus {
outline: none;
}