{"success":true,"data":{"block":{"id":"navbar-mega-menu","name":"Navbar Mega Menu","title":"NavBar Mega Menu","category":"Navbar","categorySlug":"navbar","description":"A comprehensive navigation bar with multiple mega-menu panels for complex site structures. Features distinct mega-menu styles for Platform (with product features), Use Cases (with industry solutions), Developers (with documentation and resources), and Resources (with company info). Each mega-menu panel spans the full viewport width with organized content sections, featured cards, and quick links. Mobile view uses a multi-level navigation with back buttons for drilling into sections. Ideal for enterprise SaaS, developer platforms, and large-scale websites with extensive navigation needs.","thumbnail":{"desktop":"https://cdn.ing/assets/i/r/290154/csiof180mle57yg0770kl1w6u5k1/navbar-mega-menu-desktop.png","mobile":"https://cdn.ing/assets/i/r/290155/tr5ug2c77hvy6jyt2lmogzgjnyue/navbar-mega-menu-mobile.png"},"componentPath":"blocks/navbars/navbar-mega-menu.tsx","code":"import { NavbarMegaMenu } from \"@opensite/ui/blocks/navbars/navbar-mega-menu\";\nimport { brandLogoPlaceholders, imagePlaceholders } from \"@/lib/media\";\nimport CarouselAnimatedSections from \"@/blocks/carousel/carousel-animated-sections\";\nimport FeatureShowcase from \"@/blocks/features/feature-showcase\";\nimport FaqSplitHelp from \"@/blocks/faq/faq-split-help\";\n\nexport default function Demo() {\n  return (\n    <>\n      <NavbarMegaMenu\n        logo={{\n          url: \"/\",\n          src: brandLogoPlaceholders.black[0],\n          title: \"MegaCorp\",\n          alt: \"MegaCorp Logo\",\n        }}\n        menuLinks={[\n          {\n            label: \"Products\",\n            dropdownGroups: [\n              {\n                label: \"Core Products\",\n                links: [\n                  {\n                    label: \"Platform\",\n                    description: \"All-in-one business platform\",\n                    url: \"#\",\n                    iconName: \"lucide/layout-grid\",\n                  },\n                  {\n                    label: \"Analytics\",\n                    description: \"Advanced business analytics\",\n                    url: \"#\",\n                    iconName: \"lucide/trending-up\",\n                  },\n                ],\n              },\n              {\n                label: \"Add-ons\",\n                links: [\n                  {\n                    label: \"Integrations\",\n                    description: \"Connect your tools\",\n                    url: \"#\",\n                    iconName: \"lucide/puzzle\",\n                  },\n                  {\n                    label: \"Extensions\",\n                    description: \"Extend functionality\",\n                    url: \"#\",\n                    iconName: \"lucide/blocks\",\n                  },\n                ],\n              },\n            ],\n          },\n          {\n            label: \"Solutions\",\n            dropdownGroups: [\n              {\n                label: \"By Industry\",\n                links: [\n                  {\n                    label: \"E-commerce\",\n                    description: \"For online retailers\",\n                    url: \"#\",\n                    iconName: \"lucide/shopping-bag\",\n                  },\n                  {\n                    label: \"Healthcare\",\n                    description: \"For medical practices\",\n                    url: \"#\",\n                    iconName: \"lucide/heart-pulse\",\n                  },\n                ],\n              },\n              {\n                label: \"By Size\",\n                links: [\n                  {\n                    label: \"Startups\",\n                    description: \"For early-stage companies\",\n                    url: \"#\",\n                    iconName: \"lucide/rocket\",\n                  },\n                  {\n                    label: \"Enterprise\",\n                    description: \"For large organizations\",\n                    url: \"#\",\n                    iconName: \"lucide/building-2\",\n                  },\n                ],\n              },\n            ],\n          },\n          {\n            label: \"Resources\",\n            href: \"#\",\n          },\n          {\n            label: \"Pricing\",\n            href: \"#\",\n          },\n        ]}\n        actions={[\n          {\n            label: \"Get Started\",\n            variant: \"default\",\n            href: \"#\",\n          },\n        ]}\n      />\n\n      <CarouselAnimatedSections />\n      <FeatureShowcase />\n      <FaqSplitHelp />\n    </>\n  );\n}","propsSchema":{"logo":{"type":"object","description":"Logo configuration","fields":{"url":{"type":"string","description":"URL to navigate to when logo is clicked","required":false},"src":{"type":"string","description":"Image source for the logo","required":false},"alt":{"type":"string","description":"Alt text for the logo image","required":false},"title":{"type":"object","description":"Text title to display (alternative to image)","typeLabel":"React.ReactNode","required":false},"className":{"type":"string","description":"Additional CSS classes for the logo","required":false}},"typeLabel":"LogoConfig","required":false},"menuLinks":{"type":"array","description":"Navigation menu links with optional dropdown groups","items":{"type":"object","description":"","fields":{"label":{"type":"object","description":"Display text for the menu trigger","typeLabel":"React.ReactNode","required":true},"href":{"type":"string","description":"Direct link URL (for non-dropdown items)","required":false},"layout":{"type":"string","description":"Layout type for dropdown content","typeLabel":"MegaMenuLayout","required":false},"links":{"type":"array","description":"Links array for dropdown content","items":{"type":"object","description":"","fields":{"label":{"type":"object","description":"Display text for the link","typeLabel":"React.ReactNode","required":true},"description":{"type":"object","description":"Optional description text","typeLabel":"React.ReactNode","required":false},"href":{"type":"string","description":"URL the link navigates to (preferred)","required":false},"url":{"type":"string","description":"URL the link navigates to (legacy, use href instead)","required":false},"icon":{"type":"object","description":"Icon name or element to display","fields":{},"typeLabel":"DynamicIconName","required":false},"iconName":{"type":"object","description":"Alternate icon name or element for DynamicIcon component","fields":{},"typeLabel":"DynamicIconName","required":false},"image":{"type":"string","description":"Image URL for visual representation","required":false},"background":{"type":"string","description":"Background color or image for the item","required":false}},"typeLabel":"ILinkItem"},"typeLabel":"ILinkItem[]","required":false},"dropdownGroups":{"type":"array","description":"Grouped links for more complex layouts","items":{"type":"object","description":"","fields":{"label":{"type":"object","description":"Group label/title","typeLabel":"React.ReactNode","required":true},"description":{"type":"string","description":"Optional group description","required":false},"image":{"type":"string","description":"Optional group image","required":false},"links":{"type":"array","description":"Links within this group","items":{"type":"object","description":"","fields":{"label":{"type":"object","description":"Display text for the link","typeLabel":"React.ReactNode","required":true},"description":{"type":"object","description":"Optional description text","typeLabel":"React.ReactNode","required":false},"href":{"type":"string","description":"URL the link navigates to (preferred)","required":false},"url":{"type":"string","description":"URL the link navigates to (legacy, use href instead)","required":false},"icon":{"type":"object","description":"Icon name or element to display","fields":{},"typeLabel":"DynamicIconName","required":false},"iconName":{"type":"object","description":"Alternate icon name or element for DynamicIcon component","fields":{},"typeLabel":"DynamicIconName","required":false},"image":{"type":"string","description":"Image URL for visual representation","required":false},"background":{"type":"string","description":"Background color or image for the item","required":false}},"typeLabel":"ILinkItem"},"typeLabel":"ILinkItem[]","required":true}},"typeLabel":"IMenuLinkGroup"},"typeLabel":"IMenuLinkGroup[]","required":false}},"typeLabel":"IMenuLink"},"typeLabel":"IMenuLink[]","required":false},"actions":{"type":"array","description":"Actions rendered on the right side (desktop) and bottom (mobile)","items":{"type":"object","description":"","fields":{"variant":{"type":"string","description":"","typeLabel":"\"default\" | \"destructive\" | \"outline\" | \"secondary\" | \"ghost\" | \"link\"","required":false},"size":{"type":"string","description":"","typeLabel":"\"default\" | \"sm\" | \"md\" | \"lg\" | \"icon\" | \"icon-sm\" | \"icon-lg\"","required":false},"label":{"type":"object","description":"Button/link label text or ReactNode","typeLabel":"ReactNode","required":false},"icon":{"type":"object","description":"Icon to display (typically before label)","typeLabel":"ReactNode","required":false},"iconAfter":{"type":"object","description":"Icon to display after the label","typeLabel":"ReactNode","required":false},"href":{"type":"string","description":"URL for link behavior","required":false},"onClick":{"type":"object","description":"Click handler for button behavior","typeLabel":"MouseEventHandler","required":false},"className":{"type":"string","description":"Additional CSS classes for the action","required":false},"children":{"type":"object","description":"Custom children (overrides label + icon rendering)","typeLabel":"ReactNode","required":false},"aria-label":{"type":"string","description":"ARIA label for accessibility","required":false},"asButton":{"type":"boolean","description":"Render as a button element instead of an anchor/link","required":false}},"typeLabel":"ActionConfig"},"typeLabel":"ActionConfig[]","required":false}},"defaultProps":{},"dependencies":["@opensite/ui"],"tags":["navbar","navigation","mega-menu","enterprise","multi-level","platform","developers","resources","full-width","complex-navigation"],"performance":{},"importantUsageNotes":"Use this navbar when the site has broad product and solution categories with multiple grouped sub-links — each top-level 'menuLinks' item can have 'dropdownGroups', where each group has a 'label' and 2-3 icon-linked items; suitable for mid-size SaaS or platform products. The demo uses 4 top-level items: 'Products' with 2 dropdownGroups (2 links each), 'Solutions' with 2 dropdownGroups (2 links each), and 2 flat href items — keep the structure to 2 groups per dropdown with 2-4 links per group; each link requires a lucide 'iconName'. Only set 'logo.src' if a real brand logo exists in the media library; otherwise omit 'logo.src' and rely on 'logo.title' as plain text. If you supply multiple 'actions', use a variant of 'default' for the first action and 'outline' for the second action to ensure proper visual distinction between the two CTAs — most navbars expect 1-2 actions max, do not exceed 2. Only use real internal route hrefs and important external URLs — do not invent or guess routes. The mobile menu is built into this block — do not strip it or override its behavior; preserve the demo's mobile structure. Follow the example props closely for this block — the demo encodes the canonical layout, and deviating from it will produce broken or unusable navigation."}},"timestamp":"2026-05-13T10:44:01.142Z"}