Is there a way to make this? (show/hide elements)

Im looking for a way to show/hide this elements with that arrow button, maybe through a component or code or whatever.
(This was made in Illustrator)
Thanks

<ion-icon (click)="toggle()"></ion-icon>
<div [hidden]= 'isHidden' >
//div you want to hide
</div>
toggle() {
this.isHidden= this.isHidden?false:true;
}

1 Like