JSFiddle - React, Tailwind, and code Playground
by Lalji Tadhani
HTML
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<div class="box">
<a class="btn-primary"><h6 class="btn-text">Subject</h6><h5 class="btn-text">PHYSICS</h5></a>
<i class="fa fa-caret-right" aria-hidden="true" style="font-size: 30px;"></i>
<a class="btn-primary" style="background-image: linear-gradient(#4cad4e,#4cad4e); "><h6 class="btn-text">Topic</h6><h5 class="btn-text">FORCES</h5></a>
</div>
CSS
.box{
position:absolute;
width:100%;
}
.btn-primary{
color: #fff;
padding: 0px 7% 0px 5px;
height: 45px;
display: inline-block;
text-align: left;
white-space: nowrap;
-ms-touch-action: manipulation;
touch-action: manipulation;
cursor: pointer;
background-image:linear-gradient(#25cdf7, #1144ab);;
border: 1px solid #ccc;
}
.btn-text{
margin-top: 5px;
margin-bottom: 5px;
}