JSFiddle - React, Tailwind, and code Playground

by ten1seven

HTML

<div></div>

CSS

div {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    height: 100px;
    left: 100px;
    position: absolute;
    top: 100px;
    width: 300px;
}

div:after,
div:before {
    content: '';
    display: block;
}

div:after {
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    height: 50px;
    position: absolute;
    right: -20px;
    top: 20px;
    -webkit-transform: rotate(45deg);
    width: 50px;
    z-index: 0;
}

div:before {
    background-color: #fff;
    height: 100px;
    position: absolute;
    right: 0;
    width: 50px;
    z-index: 1;
}