--- title: Megamenu desc: A megamenu is a large, horizontal menu where each item opens a popover to show a large block of navigation links. Megamenu must be used once, on top of the page. Inside each popover, you can use a daisyUI menu, or any custom content. Megamenu fits better on large screens only, and for small screens, you can hide the megamenu and show the content in a dropdown or a drawer. source: https://raw.githubusercontent.com/saadeghi/daisyui/refs/heads/master/packages/daisyui/src/components/megamenu.css layout: components classnames: component: - class: megamenu desc: For the container div modifier: - class: megamenu-wide desc: megamenu dropdown will be as wide as the megamenu container - class: megamenu-full desc: megamenu dropdown will fill the entire width of the page direction: - class: megamenu-vertical desc: Hides horizontal megamenu so we can open a vertical megamenu in small screens size: - class: megamenu-xs desc: Extra small size - class: megamenu-sm desc: Small size - class: megamenu-md desc: Medium size default: true - class: megamenu-lg desc: Large size - class: megamenu-xl desc: Extra large size --- ### Structure Megamenu is a big menu with a lot of items but it must be responsive and work on all screen sizes. On small screens the whole megamenu must be hidden by default and it must be vertical when visible. A button opens the megamenu and `max-sm:megamenu-vertical` class name to make the megamenu vertical on small screens. On larger screens, we hide the button and show the megamenu as a horizontal menu, and each button inside the megamenu will open its corresponding popover. ```json:Structure // Opens the megamenu on small screens