JSFiddle - React, Tailwind, and code Playground
HTML
<div class="redactor">
<div class="tyt_scroll"></div>
<div class="redactor-container">
<textarea class="redactor-write"></textarea>
</div>
</div>
CSS
.redactor {
border: 1px solid #000;
height: 200px;
}
.redactor-container {
margin-left: 100px;
margin-top: 0px;
margin-right: 100px;
}
.redactor-write {
width: 100%;
height: 196px;
border: 0;
resize: none;
}
.tyt_scroll {
width: 10px;
height: 30px;
position: absolute;
background-color: #BF2626;
right: 0;
margin-right: 10px;
}