Skip to content

    Browse components

    Drop Nav

    A compact navbar that springs open downward into a row of colorful link cards.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/drop-nav

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/drop-nav.json

    Usage

    import { DropNav } from "@/components/ui/drop-nav";
    
    <DropNav
      logo={<span>acme</span>}
      items={[
        { label: "Product", bgColor: "#1e1b4b", textColor: "#fff", links: [{ label: "Features", href: "/features" }] },
      ]}
    />

    Props

    PropTypeDefaultDescription
    itemsReactNode—Array of { label, links: { label, href }[], bgColor?, textColor? }.
    logoReactNode—Centered logo.
    ctaLabelstring"Get started"Call-to-action label. Empty hides it.
    ctaHrefstring"#"Call-to-action link.
    barHeightnumber60Closed bar height in px.
    cardHeightnumber200Card height in px.
    staggernumber0.08Seconds between cards.
    defaultOpenbooleanfalseStart expanded.
    classNamestring—Extra classes for the root element.