JSFiddle - React, Tailwind, and code Playground
by Alessandro Vernet
HTML
<span class="xforms-active xforms-alert">Must be 42</span>
CSS
.xforms-alert.xforms-active {
font-family: sans-serif;
font-size: 13px;
color: white;
position: relative;
padding: 2px 8px;
background: #b94a48;
border: #b94a48 solid 1px;
border-radius: 5px;
margin-top: 20px;
}
.xforms-alert.xforms-active:before {
content: "";
position: absolute;
left: 10%;
top: -10px;
border-style: solid;
border-width: 0 10px 10px 10px;
border-color: #b94a48 transparent;
display: block;
width: 0;
margin: 0 0 0 -26px;
}