{"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 } 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":true,"mediaHints":{"path":"logo","roles":["logo"],"disallowedRoles":["favicon","video-thumbnail"],"minPixelClass":"small","required":true,"note":"Brand logo. LOGO IMAGE ONLY. Do not use photos, favicons, or video assets."}},"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":true,"minItems":2,"maxItems":7},"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},"menuLinks[].dropdownGroups":{"type":"object","description":"","minItems":1,"maxItems":4},"menuLinks[].dropdownGroups[].links":{"type":"object","description":"","minItems":1,"maxItems":6}},"exampleProps":{"logo":{"url":"/","src":"https://cdn.ing/assets/i/r/287635/1tmeh86afyxszfz7hbmvcc0oct8w/logo-dark.png","title":"MegaCorp","alt":"MegaCorp Logo"},"menuLinks":[{"label":"Products","dropdownGroups":[{"label":"Core Products","links":[{"label":"Platform","description":"All-in-one business platform","url":"#","iconName":"lucide/layout-grid"},{"label":"Analytics","description":"Advanced business analytics","url":"#","iconName":"lucide/trending-up"}]},{"label":"Add-ons","links":[{"label":"Integrations","description":"Connect your tools","url":"#","iconName":"lucide/puzzle"}]}]},{"label":"Pricing","href":"#"},{"label":"Resources","href":"#"}],"actions":[{"label":"Get Started","variant":"default","href":"#"}]},"dependencies":["@opensite/ui"],"tags":["navbar","navigation","mega-menu","enterprise","multi-level","platform","developers","resources","full-width","complex-navigation"],"performance":{},"importantUsageNotes":"All media src values must be absolute URLs to real assets; relative paths and placeholder media variables are not allowed. Use 'dropdownGroups' on menu links to render grouped columns (IMenuLinkGroup[]). url iconName Alternatively use 'layout: 'animated-image-preview'' with 'links' containing 'image' URLs for visual dropdowns.","usageRequirements":{"requiredProps":["logo","menuLinks"],"mediaSlots":{"logo":{"path":"logo","roles":["logo"],"disallowedRoles":["favicon","video-thumbnail"],"minPixelClass":"small","required":true,"note":"Brand logo. LOGO IMAGE ONLY. Do not use photos, favicons, or video assets."}},"propConstraints":{"menuLinks":{"minItems":2,"maxItems":7},"menuLinks[].dropdownGroups":{"minItems":1,"maxItems":4},"menuLinks[].dropdownGroups[].links":{"minItems":1,"maxItems":6}}}}},"timestamp":"2026-06-27T20:13:54.412Z"}