JSFiddle - React, Tailwind, and code Playground
HTML
<div class="tab"></div>
CSS
.tab {
height: 300px;
position: relative;
border:1px solid orange;
margin-top:60px;
border-radius:5px;
width:300px;
}
.tab:before {
content: '';
position: absolute;
top: -23px;
right: -1px;
border-right:1px solid orange;
border-left:1px solid orange;
border-top:1px solid orange;
background:white;
width: 247px;
height:24px;
border-top-right-radius:5px;
border-top-left-radius:25px;
}
.tab:after {
content: '';
position: absolute;
top: -9px;
left:1px;
border-right:1px solid orange;
border-bottom:1px solid orange;
border-top:none;
background:white;
width: 53px;
height:9px;
border-bottom-right-radius:180px;
box-shadow:3px 3px 0px 3px white;
}