1. 2
    Toggle Navar Menu Links in Tailwind with Vue
    8m 25s

Toggle Navar Menu Links in Tailwind with Vue

Adam Wathan
InstructorAdam Wathan

Share this video with your friends

Send Tweet

Now that we have the navbar set up in a static fashion, we want to make the button that was added to drop down into a menu on click.

We'll start by adding the markup and then style that. The mark up will need to be refactored a bit so that flexbox is only affecting the navbar and not the menu that is generated. After the refactor, we'll color and size the menu with Tailwind Utility classes.

Finally, to get the menu to show and hide on click, we'll add a Vue @click directive that will toggle component state which in turn controls Tailwind classes that control whether the menu is hidden or shown.