Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/bordered-divided-links.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/navbar/navbar12.tsx instead.
Usage
The file also exports navbar12Demo, 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 { Navbar12, navbar12Demo } from "@/components/blocks/navbar/navbar12"; export default function Page() { return <Navbar12 {...navbar12Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| wordmark | string | "Ashgrove" | Logo text rendered as a bold wordmark. |
| links | { label: string; href: string }[] | none | Nav links, each divided from the next by a vertical border line. |
| cta | { label: string; href: string } | none | Call-to-action button on the far right. |
| className | string | none | Extra classes for the outer header element. |
Behavior notes
- Fully static: this is a Server Component with no client-side state or event handlers of any kind.
- Each nav link after the first gets a left border to render the vertical divider, the first link has none so the row starts flush.
- The CTA button is a static Link-as-Button, it does not perform any real navigation beyond the href you supply.
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.