Expander
Reveal hidden content by transitioning from a user-defined height to
height: auto. Set the closed height via
--height.
Default
<div class="expander">
<p>Long content...</p>
<label>
<input type="checkbox" />
Show more
</label>
</div>
Lines
Control how many lines are shown when collapsed via
--lines. Defaults to 3.
<div class="expander" style="--lines: 6">
<p>Long content...</p>
<label>
<input type="checkbox" />
Show more
</label>
</div>