JSFiddle - React, Tailwind, and code Playground

by halirgb

HTML

<input type="radio" name="radiog_lite" id="radio1" class="css-checkbox" />
<label for="radio1" class="css-label radGroup1">Option 1</label>

CSS

input[type=radio]{
    display:none;
}
input[type=radio] + label {
    padding-left:26px;
    height:21px;
    display:inline-block;
    line-height:21px;
    background-repeat:no-repeat;
    background-position: 0 0;
    font-size:21px;
    vertical-align:middle;
    cursor:pointer;
}
input[type=radio]:checked + label{
    background-position: 0 -21px;
}
label {
    background-image:url(http://csscheckbox.com/checkboxes/u/csscheckbox_183137f89772eabeb0e6bc287393b21a.png);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}