Update v4.2 - New components, 10+ framework guides, and quality improvements. Visit Changelog

Tailwind CSS Mega Menu

Create user-friendly Mega Menus using Tailwind CSS, featuring multi-level dropdown navigation that simplifies content access and improves website experience for users.

Requires JS

Note that this component requires the use of our Dropdown plugin, else you can skip this message if you are already using Preline UI as a package.

Default mega menu

Use a basic mega menu to group navigation links and richer content in one large dropdown panel.

Hover-triggered mega menu

The default trigger mode is click. Switch it to hover with the [--trigger:hover] class.

Slide up animation

Add a slide-up transition when the mega menu opens.

Auto-close behavior

Use [--auto-close:true|false] to control whether the mega menu closes after interactions inside or outside the panel.

Mega menu with tabs New

Use tabs inside the dropdown to organize larger sets of links or content.

Overlay on mobile New

Transform the mega menu from a desktop dropdown into an offcanvas overlay on smaller screens.

Fewer columns

Reduce the mega menu width when you use fewer columns or less content.

© 2026 Preline Labs.