JSFiddle - React, Tailwind, and code Playground
HTML
<div class="scrollbar" id="scroll">
<div class="scrollbar-active"></div>
</div>
CSS
.scrollbar
{
margin-left: 30px;
float: left;
height: 300px;
background: #F5F5F5;
overflow-y: scroll;
margin-bottom: 25px;
}
.scrollbar-active
{
min-height: 450px;
}
#scroll::-webkit-scrollbar-track
{
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
background-color: #F5F5F5;
}
#scroll::-webkit-scrollbar
{
width: 10px;
background-color: #F5F5F5;
}
#scroll::-webkit-scrollbar-thumb
{
background-color: #000000;
border: 2px solid #555555;
}