JSFiddle - React, Tailwind, and code Playground
HTML
<input type="checkbox" id="more" />
<label for="more">Show more</label>
<div>
<p>Ipsum lorem and all that jazz</p>
</div>
CSS
input {
position:absolute;
clip: rect(0, 0, 0, 0);
z-index: 999;
}
input + label {
z-index: 999;
}
input + label::before {
content:"+";
padding-right: 0.5em;
font-family: monospace
}
input:checked + label::before {
content:"-";
}
input ~ div {
height: 0;
padding-top: 1em;
background: #ffe;
overflow:hidden;
position: relative;
top: -0.4em;
}
input:checked ~ div {
height: auto;
}