Login form in the navbar

Hi all,

I want to create a login form in the navbar so when sign in button is clicked, then the dropdown that contains the login form is displayed? How to do this in Yii2 ?

TIA

Daniel