Tailwind CSS Menu

Use our responsive Tailwind CSS menu, that can take the user anywhere on your web app!

A menu displays a list of choices on temporary surfaces. It appears when users interact with a button, action, or other control. The menu also ensures a consistent and predictable user experience by adhering to an established set of principles

See below our menu examples that you can use in your Tailwind CSS project. The example comes in different colors and styles, so you can adapt them easily to your needs.

To create a menu you can use the data-popover-target="{menuName}" and data-popover="{menuName}" data attributes.



Nested Menu

You can created nested/multi-level menus by setting the data-popover-nested="true" data attribure to the menu trigger element.


Notifications Menu


Profile Menu

tania andrew

Menu Trigger Data Attributes

The trigger element of the menu uses the popover trigger data attribure to work.


Menu Data Attributes

The menu element uses the popover data attribures to work.


Required Scrips

The menu component needs the popover script to works, you just need to add the below script file to the bottom of your html file.

<!-- from node_modules -->
<script
  type="module"
  src="node_modules/@material-tailwind/html@latest/scripts/popover.js"
></script>
 
<!-- from cdn -->
<script
  type="module"
  src="https://unpkg.com/@material-tailwind/html@latest/scripts/popover.js"
></script>
Edit this page on Github