JSFiddle - React, Tailwind, and code Playground

by igalst

HTML

<i class="arrow-top"></i> 
<i class="arrow-bottom"></i>
<i class="arrow-right"></i>
<i class="arrow-left"></i>

CSS

.arrow-top {
  border: 10px solid transparent;
  border-top: 0;
  border-bottom-color: red;
  display: inline-block;
  width: 0;
  height: 0;
}

.arrow-bottom {
  border: 10px solid transparent;
  border-bottom: 0;
  border-top-color: red;
  display: inline-block;
  width: 0;
  height: 0;
}

.arrow-right {
  border: 10px solid transparent;
  border-right: 0;
  border-left-color: red;
  display: inline-block;
  width: 0;
  height: 0;
}

.arrow-left {
  border: 10px solid transparent;
  border-left: 0;
  border-right-color: red;
  display: inline-block;
  width: 0;
  height: 0;
}