JSFiddle - React, Tailwind, and code Playground

by justjohn

HTML

<div class="icon round">
    <div class="arrow"></div>
    <div class="arrow2"></div>
</div>

CSS

.icon {
    display: block;
    position: relative;
    width: 16px;
    height: 16px;
    background: #333;
    margin: 20px;
    overflow:hidden;
}
.round {
    border-radius: 8px;
}
.arrow {
    position: absolute;
    display:inline-block;
    height: 0;
    line-height: 0;
    width: 0;
    top: 3px;
    left: 6px;
    border-left: 5px solid #f3f3f3;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}
.arrow2 {
    position: absolute;
    display:block;
    height: 0;
    line-height: 0;
    width: 0;
    top: 3px;
    left: 3px;
    border-left: 5px solid #333;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}