{"success":true,"data":{"block":{"id":"navbar-image-preview","name":"Navbar Image Preview","title":"NavBar Image Preview","category":"Navbar","categorySlug":"navbar","description":"A fixed navigation bar with image preview functionality in dropdown menus. The navigation bar changes background on scroll for better visibility. Desktop dropdowns display a large image preview that dynamically changes when hovering over different menu items, creating an engaging visual experience. Mobile view uses a full-screen dark overlay with categorized link columns and social links at the bottom. Ideal for creative agencies, portfolios, e-commerce sites, and brands that want to showcase visual content directly in their navigation.","thumbnail":{"desktop":"https://cdn.ing/assets/i/r/290164/b9mreqd4lioiqekpb7alvqs680my/navbar-image-preview-desktop.png","mobile":"https://cdn.ing/assets/i/r/290165/ihgllx4727whi8oxwdrfjw23l73a/navbar-image-preview-mobile.png"},"componentPath":"blocks/navbars/navbar-image-preview.tsx","code":"import { NavbarImagePreview } from \"@opensite/ui/blocks/navbars/navbar-image-preview\";\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      <NavbarImagePreview\n      logo={{\n        url: \"/\",\n        src: brandLogoPlaceholders.black[0],\n        title: \"Design Studio\",\n        alt: \"Design Studio Logo\",\n      }}\n      navigation={[\n        {\n          title: \"Services\",\n          links: [\n            {\n              label: \"Brand Identity\",\n              description: \"Complete brand design packages\",\n              url: \"#\",\n              image: \"https://toastability-production.s3.amazonaws.com/a3m42usevv0iet0fpfwa1fsytxmv\",\n            },\n            {\n              label: \"Web Design\",\n              description: \"Modern and responsive websites\",\n              url: \"#\",\n              image: \"https://toastability-production.s3.amazonaws.com/qghzqu1i99vaubyew9s5dxcbel9l\",\n            },\n            {\n              label: \"UI/UX Design\",\n              description: \"User-centered design solutions\",\n              url: \"#\",\n              image: \"https://toastability-production.s3.amazonaws.com/9covpitzpuuobkg1m4mfokpi0enw\",\n            },\n            {\n              label: \"Motion Graphics\",\n              description: \"Engaging animated content\",\n              url: \"#\",\n              image: \"https://toastability-production.s3.amazonaws.com/2d4k8d5shwg82276hzj2ztbj7mxq\",\n            },\n          ],\n        },\n        {\n          title: \"Portfolio\",\n          url: \"#\",\n        },\n        {\n          title: \"About\",\n          url: \"#\",\n        },\n        {\n          title: \"Contact\",\n          url: \"#\",\n        },\n      ]}\n      authActions={[\n        {\n          label: \"Get a Quote\",\n          variant: \"default\",\n          href: \"#\",\n          asButton: true,\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."}},"navigation":{"type":"array","description":"Navigation menu items","items":{"type":"object","description":"","fields":{"label":{"type":"string","description":"","required":true},"href":{"type":"string","description":"","required":true}},"typeLabel":"MenuItem"},"typeLabel":"MenuItem[]","required":true,"minItems":2,"maxItems":6,"mediaHints":{"path":"navigation[].links[].image","roles":["feature"],"disallowedRoles":["logo","favicon","video-thumbnail"],"minPixelClass":"large","required":true,"note":"Preview image shown on hover of each dropdown link. IMAGE MEDIA ONLY. Do not use logos, favicons, or video assets."}},"authActions":{"type":"array","description":"Authentication action configurations","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,"minItems":0,"maxItems":2},"navigation[].links":{"type":"object","description":"","minItems":1,"maxItems":6}},"exampleProps":{"logo":{"url":"/","src":"https://cdn.ing/assets/i/r/287635/1tmeh86afyxszfz7hbmvcc0oct8w/logo-dark.png","title":"Design Studio","alt":"Design Studio Logo"},"navigation":[{"title":"Services","links":[{"label":"Brand Identity","description":"Complete brand design packages","url":"#","image":"https://cdn.ing/assets/i/r/308196/g6bbn73f7gxal82uu49m9prfd0u8/workplace-in-cafe.webp"},{"label":"Web Design","description":"Modern and responsive websites","url":"#","image":"https://cdn.ing/assets/i/r/308196/g6bbn73f7gxal82uu49m9prfd0u8/workplace-in-cafe.webp"},{"label":"UI/UX Design","description":"User-centered design solutions","url":"#","image":"https://cdn.ing/assets/i/r/308196/g6bbn73f7gxal82uu49m9prfd0u8/workplace-in-cafe.webp"}]},{"title":"Portfolio","url":"#"},{"title":"About","url":"#"},{"title":"Contact","url":"#"}],"authActions":[{"label":"Get a Quote","variant":"default","href":"#","asButton":true}]},"dependencies":["@opensite/ui"],"tags":["navbar","navigation","image-preview","hover-preview","visual","creative","portfolio","e-commerce","fixed","scroll-aware"],"performance":{},"importantUsageNotes":"All media src values must be absolute URLs to real assets; relative paths and placeholder media variables are not allowed. Dropdown links that should show image previews must include an 'image' absolute URL. The 'navigation' prop uses 'title' and optional 'links' (MenuLink[]) or 'url' for flat links. url The component listens to scroll events — do not wrap in a scroll-locked container.","usageRequirements":{"requiredProps":["logo","navigation"],"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."},"navigation[].links[].image":{"path":"navigation[].links[].image","roles":["feature"],"disallowedRoles":["logo","favicon","video-thumbnail"],"minPixelClass":"large","required":true,"note":"Preview image shown on hover of each dropdown link. IMAGE MEDIA ONLY. Do not use logos, favicons, or video assets."}},"propConstraints":{"navigation":{"minItems":2,"maxItems":6},"navigation[].links":{"minItems":1,"maxItems":6},"authActions":{"minItems":0,"maxItems":2}}}}},"timestamp":"2026-06-27T20:16:30.894Z"}