JSFiddle - React, Tailwind, and code Playground

HTML

<label class="tab active">
    <input type="radio" name="someTabs" value="someValueA" />Tab 1</label>
<label class="tab">
    <input type="radio" name="someTabs" value="someValueB" />Tab 2 (with longer text)</label>

CSS

.tab {
    display: block;
    font-size: 1.2em;
    height: 2em;
    line-height: 2em;
    margin-right: 1px;
    padding: 0 2em;
    position: relative;
    text-align: center;
    float: left;
    letter-spacing: 1.5px;
}
.tab.active, .tab:hover {
    font-weight: bold;
    letter-spacing: normal;
}
.tab input[type=radio] {
    display: none;
}