JSFiddle - React, Tailwind, and code Playground
HTML
<div id='box'>
<div id='boxTitle'>
This is the title
</div>
</div>
CSS
#box {
height: 250px;
width: 250px;
border-radius: 10px;
background: #bbb;
}
#boxTitle {
width: 100%;
background: #000;
color: #fff;
text-align: center;
}