JSFiddle - React, Tailwind, and code Playground
HTML
<div id="content">
<div class="innercontent">Some content</div>
</div>
<div class="data">data</div>
CSS
#content {
overflow: scroll;
width: 300px;
height: 300px;
margin-left: 150px;
}
.innercontent {
width: 800px;
height: 100px;
background-color: red;
}
.hover-class {
background-color: yellow;
}
.data {
width: 75px;
height: 20px;
background-color: gray;
border: 1px solid black;
margin: 2px;
}
JavaScript
$('.data').draggable();
$('.innercontent').droppable({
accept: '.data',
hoverClass: 'hover-class'
});