Responsive navbar using TailwindCSS and JS

I’m using TailwindCSS on a Symfony 5 application. I would like to use the first navbar on this page. It says “Requires JS” above. Does Tailwind provide JS by default? If yes, which file to import or use?

Thanks for your help and don’t hesitate to ask me if I forgot some information.


Requires JS means “bring your own” JavaScript.

You need to write your own JavaScript to handle the open and closed states of the menu when you click on the avatar.