JSFiddle - React, Tailwind, and code Playground

HTML

<div class="breadcrumb-wrap">
  <ul class="breadcrumb">
    <li><a class="tablinks" id="sunbed-tab" onclick="openTabs(event, 'sunbed')">Sunbed<br>Packages</a></li>
    <li><a class="tablinks" id="trainer-tab" onclick="openTabs(event, 'trainer')">Personal<br>Trainers</a></li>
    <li><a class="tablinks" id="sauna-tab" onclick="openTabs(event, 'sauna')">Sauna<br>Rooms</a></li>
  </ul>
</div>

<div id="sunbed" class="city">
This is sunbed page
</div>

<div id="trainer" class="city">
This is trainer page
</div>

<div id="sauna" class="city">
This is sauna page
</div>

CSS

.breadcrumb-wrap {
  font-size: 16px;
  font-weight: bold;
  color: #64768a;
  border: none;
  border-radius: 0px;
  width: 350px;
  margin: auto;
}

.breadcrumb {
  list-style: none;
  overflow: hidden;
  padding: 0;
  margin: 0;
  border-top: none;
}

.breadcrumb li {
  float: left;
  color: #ffffff;
  cursor: pointer;
}

.breadcrumb li a {
  color: #ffffff;
  text-decoration: none;
  padding: 20px 0px 20px 50px;
  background: #93cc79;
  position: relative;
  display: block;
  float: left;
}

.breadcrumb li a:after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 50px solid transparent;
  border-bottom: 50px solid transparent;
  border-left: 30px solid #93cc79;
  position: absolute;
  top: 50%;
  margin-top: -50px;
  left: 100%;
  z-index: 2;
}

.breadcrumb li a:before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 50px solid transparent;
  border-bottom: 50px solid transparent;
  border-left: 30px solid #62bb47;
  position: absolute;
  top: 50%;
  margin-top: -50px;
  margin-left: 2px;
  left: 100%;
  z-index: 1;
}

.breadcrumb li:first-child a {
  padding-left: 20px;
}

.breadcrumb li:last-child a {
  background: #93cc79;
}

.breadcrumb li:last-child a:hover {
  background: #62bb47;
}

.breadcrumb li:last-child a:after {
  border-left-color: #62bb47;
  border-left: 30px solid #93cc79;
}

.breadcrumb li:last-child a:hover:after {
  border-left-color: #62bb47;
}

.breadcrumb li a:hover {
  background: #62bb47;
  color: #000000;
}

.breadcrumb li a:hover:after {
  border-left-color: #62bb47;
}

.breadcrumb .active {
  background: #62bb47;
}
.breadcrumb .active:after {
  border-left-color: #62bb47;
}
.breadcrumb li:last-child .active {
  border-left-color: #62bb47;
      background: #62bb47;
}
.breadcrumb li:last-child .active:after {
  border-left: 30px solid #62bb47;
}

JavaScript

function openTabs(evt, tabName) {
  var i, tabcontent, tablinks;
  tabcontent = document.getElementsByClassName("city");
  for (i = 0; i < tabcontent.length; i++) {
    tabcontent[i].style.display = "none";
  }
  tablinks = document.getElementsByClassName("tablinks");
  for (i = 0; i < tablinks.length; i++) {
    tablinks[i].classList.remove("active");
  }
  document.getElementById(tabName).style.display = "block";
  document.getElementById(tabName + "-tab").classList.add("active");
}
document.getElementById("sunbed-tab").click();