JSFiddle - React, Tailwind, and code Playground

HTML

<div class="arrow" />

CSS

.arrow {
  width: 0;
  height: 0;
  border: 15px solid transparent;
  border-right: 15px solid black;
}