Vertical navbar, with items that collapse? But How in Yii2?

Can someone help me with the yii2 syntax of making a vertical navbar?

The vertical navbar should have also items which will be shown and collapsed if clicked on.

I have no clue.

Can someone help? I am new to the yii2 framework…

Thanks in advance.