JSFiddle - React, Tailwind, and code Playground
by kachibito
HTML
<label><input type="checkbox" id="check">Check This!</label>
<div id="box">content is here</div>
CSS
input{margin:80px 0 0 80px;}
div{
display:none;
margin:25px;
padding:25px;
background:#eee;
width:200px;
height:150px;
}
JavaScript
$('#check').click(function() {
$("#box").slideToggle(this.checked);
});