JSFiddle - React, Tailwind, and code Playground
by Pranav Desai
HTML
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
<div class="container">
<h2>Radio (single choice)</h2>
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-primary" style="margin-right:10px;">
<input name="options" id="option1" type="radio" > 1
</label>
<label class="btn btn-primary" style="margin-right:10px;">
<input name="options" id="option2" type="radio"> 2
</label>
<label class="btn btn-primary active" style="margin-right:10px;">
<input name="options" id="option3" type="radio"> 3
</label>
<label class="btn btn-primary" style="margin-right:10px;">
<input name="options" id="option1" type="radio" > 4
</label>
<label class="btn btn-primary" style="margin-right:10px;">
<input name="options" id="option2" type="radio"> 5
</label>
</div>
</div>
CSS
.selectit { background-color: green; }
.container .btn-group .active { background-color : red }