JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://www.sunsean.com/idTabs/jquery.idTabs.min.js"></script>
<div>
<div id="usual1" class="usual">
<div id="tab1" style="display: none;">This is tab 1.</div>
<div id="tab2" style="display: block;">More content in tab 2.</div>
<div id="tab3" style="display: none;">Tab 3 is always last!</div>
</div>
</div>
<div class="usualBottom">
<ul>
<li><a href="#tab1" class="">Tab 1</a>
</li>
<li><a href="#tab2" class="selected">Tab 2</a>
</li>
<li><a href="#tab3" class="">Tab 3</a>
</li>
</ul>
</div>
CSS
/* idTabs ~ Sean Catchpole */
/* Style for Usual tabs */
.usual {
/*background:#234455;*/
color:#000;
padding:15px 20px;
width:800px;
height: 300px;
border:1px solid #222;
/*margin:8px auto;*/
}
.usualBottom li {
list-style:none;
float:left;
}
.usualBottom ul a {
display:block;
width:100px;
padding:6px 10px;
text-decoration:none!important;
margin:1px;
margin-left:0;
font:10px Verdana;
color:#FFF;
background:#444;
}
.usualBottom ul a:hover {
color:#FFF;
background:#111;
}
.usualBottom ul a.selected {
margin-bottom:0;
color:#000;
background:snow;
border-bottom:1px solid snow;
cursor:default;
}
.usual div {
/*
padding:10px 10px 8px 10px;
*padding-top:3px;
*margin-top:-15px;
clear:left;
background:snow;
*/
font:10pt Georgia;
}
.usual div a {
color:#000;
font-weight:bold;
}
#usual2 {
background:#0A0A0A;
border:1px solid #1A1A1A;
}
#usual2 a {
background:#222;
}
#usual2 a:hover {
background:#000;
}
#usual2 a.selected {
background:snow;
}
#tabs3 {
background:#FF9;
}
/* Style for various uses of tabs */
#freedom {
float:left;
width:90px;
color:#68D;
font:1.3em Cambria, Times New Roman, serif;
font-style:italic;
}
#freedom li a {
width:80px;
text-align:left;
padding:2px 6px 4px;
background:#222;
margin:1px;
*margin:0px;
display:block;
text-decoration:none;
font-weight:bold;
font-size:0.7em;
font-style:normal;
}
#freedom li a:hover {
background:#0A0A0A;
width:86px;
}
#freedom li a.selected {
background:#FFF;
color:#000;
width:90px;
cursor:default;
}
.tabContainer {
width:400px;
margin:20px auto;
padding-top:2px;
background:#181818;
border:1px solid #222;
}
.tabContainer h3 {
padding-bottom:4px;
color:#F60;
}
.tabContainer p {
padding:2px 12px 10px;
text-align:left;
}
#three {
...
JavaScript
$(".usualBottom ul").idTabs();