
Structure and Schema
The mega menu is built using a flexible schema that allows for nested navigation items and different submenu styles. TheNavItem interface defines the structure of each menu item:
NavItem can have a text label, an optional link (href), and an optional submenu. The submenu can be displayed in different variants:
- Text Grid: A grid layout displaying text links for subcategories.
- Image Grid: A grid layout showcasing images with corresponding text links.
- Text-Image Grid: A combination of text links and image links.
app/layout.tsx file.