JSFiddle - React, Tailwind, and code Playground

by Haze32

HTML

<div class="ccCard">
  <div class="ccc-titleSec">
    <div>Title</div>
  </div>
  <div class="ccc-contentSec">
    <div>Content 01</div>
    <div>Content 01</div>
  </div>
</div>

CSS

:root {
  --bordRadS: 10px;
  --bordRadB: 20px;
}

.ccCard {
  background: #fff;
  border-radius: var(--bordRadS);
  max-width: 300px;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
}
.ccc-titleSec {
  background: blue;
  /*border-radius: var(--bordRadS) var(--bordRadS) 0 var(--bordRadB);*/
  border-radius: var(--bordRadS) var(--bordRadS) var(--bordRadB) 0;
  padding: 10px;
  position: relative;
  color: #fff;
}
.ccc-contentSec {
  position: relative;
  background: #fff;
  /*border-radius:0 var(--bordRadB) var(--bordRadS) var(--bordRadS);*/
  border-radius: var(--bordRadB) 0 var(--bordRadS) var(--bordRadS);
  padding: 10px;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
}
.ccc-titleSec:after {
  content: "";
  position: absolute;
  width: var(--bordRadB);
  height: var(--bordRadB);
  background: blue;
  bottom: calc(var(--bordRadB) * -1);
  left: 0;
}