JSFiddle - React, Tailwind, and code Playground

HTML

<div class="widget">
    <div class="header">Header Title</div>
    <div class="body"></div>
</div>

CSS

.widget {
    height: 100px;
    width: 130px;
    border: 3px solid blue;
    position: absolute;
    overflow: hidden;
}
.header {
    width: 100%;
    min-height: 24px;
    max-height: 24px;
    display: block;
    background-color: grey;
    color: white;
}
.body {
    width: 100%;
    height: calc(100% - 24px);
}