JSFiddle - React, Tailwind, and code Playground

by patelsan

HTML

<div id="box" class="tagged"></div>

CSS

#box {
    width: 10em;
    height: 6em;
    border: 4px solid #0c0;
    background-color: #fff;
    position: relative;
}

.tagged::before,
.tagged::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    border-color: transparent;
    border-style: solid;
}

.tagged::before {
    //border-width: 1.5em;
    border-right-color: #ccc;
    border-top-color: #ccc;
}

.tagged::after {
    //border-radius: 0.4em;
    border-width: 12px;
    border-right-color: #0c0;
    border-top-color: #0c0;
}