JSFiddle - React, Tailwind, and code Playground

by jcubed111

HTML

<div class="box">42
    <div class="arrow"></div>
    <div class="arrow2"></div>
</div>

CSS

.box {
    border-color: orange;
    border-style: solid;
    text-align: center;
    border-width: 1px 0px 1px 1px;
    margin: 0px 8px 0px 0px;
    background-color: yellow;
    padding-right: 8px;
    position: relative;
    height:14px;
    font-size:12px;
    font-family:serif;
    display:inline-block;
    padding-left:5px;
}
.arrow {
    border-color: transparent transparent transparent orange;
    border-style: solid;
    border-width: 8px;
    position: absolute;
    right: -15px;
    bottom: -1px;
    height:0;
    width:0;
}
.arrow2 {
    border-color: transparent transparent transparent yellow;
    border-style: solid;
    border-width: 7px;
    position: absolute;
    right: -12px;
    bottom: 0px;
    height:0;
    width:0;
}

JavaScript

/* arrow box */