JSFiddle - React, Tailwind, and code Playground

by CyberAP

HTML

<div class="tglWchild"></div>

CSS

.tglWchild
{
  content: "";
  display: block;
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: green;
  background-image: -webkit-linear-gradient(rgba(255,255,255,0.35), rgba(255,255,255,0));
  background-image: -moz-linear-gradient(rgba(255,255,255,0.35), rgba(255,255,255,0));
  background-image: linear-gradient(rgba(255,255,255,0.35), rgba(255,255,255,0));
  border: 1px solid darkgreen;
  cursor: pointer;
}

.tglWchild:after /* triangle */
{
  content: "";
  display: block;
  position: absolute;
  right: 50%;
  bottom: 50%;
  -webkit-transform: translate(50%, 1px);    
  -moz-transform: translate(50%, 1px);    
  transform: translate(50%, 1px);
  width: 0;
  height: 0;
  border: 4px solid transparent;
  border-bottom-color: #fff;
  box-shadow: 0 1px rgba(0,0,0,0.25);
}