JSFiddle - React, Tailwind, and code Playground
by josangel555
HTML
<input class="status-acknowledge" name="Acknowledge" type="checkbox" value="true">
CSS
.table-default input[type='checkbox'] {
top: 2px;
margin: 0;
}
input[type='checkbox'] {
position: relative;
top: 6px;
display: inline-block;
-webkit-appearance: none;
-moz-appearance: none;
-ms-appearance: none;
appearance: none;
width: 32px;
height: 16px;
background-color: #e6e6e6;
position: relative;
-webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
-moz-box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
-webkit-border-radius: 16px;
-moz-border-radius: 16px;
-ms-border-radius: 16px;
-o-border-radius: 16px;
border-radius: 16px;
-webkit-transition: all .2s ease-in-out;
-moz-transition: all .2s ease-in-out;
-o-transition: all .2s ease-in-out;
transition: all .2s ease-in-out;
}
input[type='checkbox']:after {
content: '';
display: inline-block;
position: absolute;
width: 14px;
height: 14px;
background-color: white;
top: 1px;
left: 1px;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
-ms-border-radius: 50%;
-o-border-radius: 50%;
border-radius: 50%;
-webkit-transition: all .2s ease-in-out;
-moz-transition: all .2s ease-in-out;
-o-transition: all .2s ease-in-out;
transition: all .2s ease-in-out;
}