Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/product-dropdown-icons.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/navbar/navbar10.tsx instead.
Usage
The file also exports navbar10Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Navbar10, navbar10Demo } from "@/components/blocks/navbar/navbar10"; export default function Page() { return <Navbar10 {...navbar10Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| wordmark | string | "Meridian" | Logo text rendered as a bold wordmark. |
| triggerLabel | string | "Products" | Label for the dropdown trigger nav item. |
| products | ProductItem[] | none | Grid entries shown in the dropdown panel, rendered in order. |
| links | { label: string; href: string }[] | none | Additional plain nav links shown next to the dropdown trigger. |
| className | string | none | Extra classes for the outer header element. |
Types
type ProductItem = { title: string; description: string; href: string; };
Behavior notes
- Real client-side state: clicking the trigger toggles a useState boolean that conditionally renders the product grid panel.
- Icons are not passed through props: a fixed array of six lucide-react icons is hardcoded inside the component and indexed by each product's array position, because a "use client" block can never accept a component reference (e.g. an icon) as prop data.
- The chevron next to the trigger rotates based on the same open state to hint at the expanded/collapsed direction.
More Navbar Blocks
View all →Simple Logo Links CTA
Wordmark on the left, a row of nav links, and a single CTA button on the right.
Centered Logo Split Links
Logo centered in the header with nav links evenly split to its left and right.
Mega Menu Dropdown
A trigger that opens a wide, multi-column mega menu panel below the header.
Navbar With Search
Logo, a few nav links, and a labeled search input with an inline icon.
Two Tier Utility Nav
A thin utility link row above the main navigation row.
Minimal Logo CTA Only
The simplest possible header: just a logo and a single CTA button, no nav links.