JSFiddle - React, Tailwind, and code Playground

by cjake

HTML

<div class="box arrow-bottom">
  This is a box with some content and an arrow at the bottom.
</div>

CSS

.box {
  width: 150px;
  height: 75px;
  background-color: black;
  color: #fff;
  padding: 20px;
  position: relative;
  margin: 40px;
  float: left;
}

.box.arrow-bottom:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border: 20px solid transparent;
  border-top-color: #00aabb;
  border-bottom: 0;
  border-right: 0;
  margin-left: 5px;
  margin-bottom: -20px;
  transform: skew(30deg);
}