JSFiddle - React, Tailwind, and code Playground
by mehulkar
HTML
<div class='rectangle clip-me mb'></div>
<div class='rectangle'></div>
CSS
.rectangle {
width: 200px;
height: 50px;
background: red;
}
.clip-me {
-webkit-clip-path: inset(10px);
}
.mb { margin-bottom: 10px; }