JSFiddle - React, Tailwind, and code Playground

by Alexander Startsev

HTML

<div class="hint">
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perspiciatis consectetur reiciendis totam earum repudiandae officia consequuntur odit, fuga! Ut, ab.</p>
</div>

CSS

.hint{
    padding-top: 20px;
    background-color: #fff;
    max-width: 300px;
    position: relative;
}

.hint::before{
    content: '';
    position: absolute;
    top: 0;
    width: 40%;
    height: 20px;
    left: 0;
    border: 1px #eee solid;
    border-bottom: none;
    background-color: #fff;
}

.hint::after{
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    top: 6px;
    left: 40%;
    margin-left: -13px;
    background-color: #fff;
    border-right: 1px #eee solid;
    -webkit-transform: rotate(-40deg);
    -moz-transform: rotate(-40deg);
    -ms-transform: rotate(-40deg);
    -o-transform: rotate(-40deg);
    transform: rotate(-40deg);
}

.hint p{
    margin: 0;
    padding: 0;
    padding: 20px;
    border: 1px #eee solid;
}