JSFiddle - React, Tailwind, and code Playground
by Ayri Rin
HTML
<div class="checkbox">
<input id="check1" type="checkbox" name="check" value="check1">
<label for="check1">Краткострочные</label>
<input id="check2" type="checkbox" name="check" value="check2">
<label for="check2">Долгострочные</label>
</div>
CSS
.checkbox label {
display: inline-block;
cursor: pointer;
position: relative;
padding-left: 25px;
font-size: 13px;
}
.checkbox input[type=checkbox] {
display: none;
}
.checkbox label:before {
border-radius: 50px;
}
.checkbox label:before {
content: "";
display: inline-block;
width: 16px;
height: 16px;
margin-right: 10px;
position: absolute;
left: 0;
bottom: 0px;
background-color: #fff;
border: 1px solid #cccccc;
}
.checkbox input[type=checkbox]:checked + label:before {
content: "\2713";
border: 1px solid #00964f;
font-size: 15px;
color: #00964f;
text-align: center;
line-height: 15px;
}