JSFiddle - React, Tailwind, and code Playground

HTML

Click the details frame.<br>
aaa<div style="display:inline-block">
<details style="overflow:hidden; max-height: 50px; border: 1px solid black;">
d<br>
d<br>
d<br>
d<br>
d<br>
d<br>
d<br>
</details>
</div>