JSFiddle - React, Tailwind, and code Playground

by Lalji Tadhani

HTML

<div class="box">
  <div class="item_active item">1</div>
  <div class="item">2</div>
  <div class="item">3</div>
</div>

CSS

.box {
  width: 300px;
  height: 60px;
  background: red;
  display: flex;
  align-items: center;
  border-radius: 50px;
}
.item {
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  color: red;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
}
.item_active {
  border-radius: 50px;
  
}