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/simple-logo-links-cta.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/navbar/navbar1.tsx instead.
Usage
The file also exports navbar1Demo, 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 { Navbar1, navbar1Demo } from "@/components/blocks/navbar/navbar1"; export default function Page() { return <Navbar1 {...navbar1Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| wordmark | string | "Northlane" | Logo text rendered as a bold wordmark. |
| links | { label: string; href: string }[] | none | Primary nav links, shown on medium screens and up. |
| cta | { label: string; href: string } | none | The single call-to-action button on the right. |
| className | string | none | Extra classes for the outer header element. |
Behavior notes
- Fully static: no client-side state anywhere in this block.
- Nav links are plain Next.js Links, and the CTA is a Button rendered as a Link via the render prop, neither performs any real navigation beyond the href you supply.
- Nav links are hidden below the md breakpoint; this block does not include a mobile menu trigger.
More Navbar Blocks
View all →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.
Mobile Hamburger Menu
Wordmark, a CTA button, and a hamburger icon that toggles a vertical nav list open and closed.