{"success":true,"data":{"block":{"id":"navbar-sticky-compact","name":"Navbar Sticky Compact","title":"NavBar Sticky Compact","category":"Navbar","categorySlug":"navbar","description":"A compact sticky navigation bar that shrinks on scroll to maximize content space. The logo shrinks and padding reduces as the user scrolls down, maintaining navigation accessibility while giving more room to content. Desktop view shows dropdown menus with icons, while mobile view uses a slide-out sheet from the right. The smooth transition between normal and compact states provides a polished user experience. Ideal for content-heavy sites, blogs, documentation, and any website where vertical space is valuable.","thumbnail":{"desktop":"https://cdn.ing/assets/i/r/290178/tin1i4gses01dabto9uezmat03az/navbar-sticky-compact-desktop.png","mobile":"https://cdn.ing/assets/i/r/290179/869c4ipcp0kfzvm4zxlt536p6qsk/navbar-sticky-compact-mobile.png"},"componentPath":"blocks/navbars/navbar-sticky-compact.tsx","code":"import { NavbarStickyCompact } from \"@opensite/ui/blocks/navbars/navbar-sticky-compact\";\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      <NavbarStickyCompact\n      logo={{\n        url: \"/\",\n        src: brandLogoPlaceholders.black[0],\n        alt: \"Brand Logo\",\n      }}\n      menu={[\n        { title: \"Home\", url: \"#\" },\n        { title: \"Features\", url: \"#\" },\n        { title: \"Pricing\", url: \"#\" },\n        { title: \"About\", url: \"#\" },\n        { title: \"Blog\", url: \"#\" },\n      ]}\n      authActions={[\n        {\n          label: \"Sign Up\",\n          variant: \"outline\",\n          href: \"#\",\n          asButton: true,\n          size: \"sm\",\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},"menu":{"type":"array","description":"Navigation menu items","items":{"type":"object","description":"","fields":{"title":{"type":"string","description":"","required":true},"url":{"type":"string","description":"","required":false},"tabs":{"type":"array","description":"","items":{"type":"object","description":"","fields":{"id":{"type":"string","description":"","required":true},"title":{"type":"string","description":"","required":true},"icon":{"type":"object","description":"","fields":{},"typeLabel":"DynamicIconName","required":false},"links":{"type":"array","description":"","items":{"type":"object","description":"","fields":{"title":{"type":"string","description":"","required":true},"description":{"type":"string","description":"","required":false},"url":{"type":"string","description":"","required":true},"icon":{"type":"object","description":"","fields":{},"typeLabel":"DynamicIconName","required":false}},"typeLabel":"{ title: string; description?: string; url: string; icon?: DynamicIconName; }"},"typeLabel":"{ title: string; description?: string; url: string; icon?: DynamicIconName; }[]","required":true},"featured":{"type":"object","description":"","fields":{"title":{"type":"string","description":"","required":true},"description":{"type":"string","description":"","required":true},"url":{"type":"string","description":"","required":true},"image":{"type":"string","description":"","required":true}},"typeLabel":"{ title: string; description: string; url: string; image: string; }","required":false}},"typeLabel":"TabItem"},"typeLabel":"TabItem[]","required":false}},"typeLabel":"MenuItem"},"typeLabel":"MenuItem[]","required":false},"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}},"defaultProps":{},"dependencies":["@opensite/ui"],"tags":["navbar","navigation","sticky","compact","shrink-on-scroll","space-efficient","content-heavy","blog","documentation","smooth-transition"],"performance":{},"importantUsageNotes":"Use this navbar when the site needs a minimal, compact sticky navigation that remains visible on scroll without occupying much vertical space — suitable for landing pages, blogs, and personal/agency sites with 4-6 top-level flat links and a single CTA. The demo uses 5 flat 'menu' items and 1 small 'authActions' entry with 'size: sm' and 'outline' variant — keep menu items to 4-6 flat links with no dropdowns; the compact height means no mega-menus or tall dropdowns should be used. Only set 'logo.src' if a real brand logo exists in the media library; otherwise omit 'logo.src' based on available media. The 'authActions' prop drives the right-side buttons — if you supply multiple entries, use a variant of 'default' for the first and 'outline' for the second; prefer 'size: sm' to maintain compact proportions. 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:43:02.614Z"}