JSFiddle - React, Tailwind, and code Playground
HTML
<div id="main">
<div id="arrow">-â–˛-</div>
<div id="toggle_view">view more</div>
<div id="content1"> this is any thext</div>
<div id="content2"> this is any thext</div>
<div id="content3"> this is any thext</div>
<div id="content4"> this is any thext</div>
</div>
CSS
#main {overflow-y:hidden;height:100px;position:relative; background:red;}
#toggle_view{position:absolute;right:0;bottom:0;}
#arrow {position:absolute;top:50px;right:0;background:green;padding:5px; cursor:pointer;z-index:2;}
#main > #arrow ~ div{display:none;}
#main > #arrow:focus ~ div, #main > #arrow:hover ~ div{display:block;}