Component Details click

It`s possible to make the component Details only open/close when click in icon ?