JSFiddle - React, Tailwind, and code Playground

HTML

<div class="error-label">This field is required.</div>

CSS

div.error-label{
    padding:10px;
    color: #fff;
    background-color: #DA362A;
    -webkit-border-radius: 5px; 
    -moz-border-radius: 5px; 
    border-radius: 5px;
    width:190px;
    margin:30px;
}

div.error-label:before {
content: ' ';
	height: 0;
	position: absolute;
	width: 0;
    left:10px;
	border: 10px solid transparent;
	border-right-color: #DA362A;
}