Creative Tim UICreative Tim UI

Navbar Blocks based on shadcn/ui

The navbar is the first thing people see and the last thing you want to fight with at 2am. These shadcn/ui navbar blocks give you a header that already works: a logo slot, links, a dropdown menu, a search field, and a clean mobile version that collapses into a burger menu without you wiring it up by hand.

Every one is built with shadcn/ui and Tailwind, so the hover states, the active link, and the mobile toggle are handled. Copy the code off the page, or run one npx shadcn add command and it lands in your project. From there you change the links, drop in your logo, and restyle it to your brand in a few minutes.

Find the layout closest to your app below, a marketing header, a dashboard top bar, a navbar with a user menu, and start from a working version instead of a blank component.

Files
app/simple-navbar/page.tsx
import SimpleNavbar from "@/components/creative-tim/blocks/simple-navbar"

export default function Page() {
  return <SimpleNavbar />
}
Simple navigation bar with logo, links, and dropdown
simple-navbar
import SimpleNavbar from "@/components/creative-tim/blocks/simple-navbar"

export default function Page() {
  return <SimpleNavbar />
}
PRO Blocks

This is a PRO block. Upgrade your account to access the source code and install this block via CLI/MCP.

Upgrade to PRO
White themed navigation bar with icons
white-navbar
import WhiteNavbar from "@/components/creative-tim/blocks/white-navbar"

export default function Page() {
  return <WhiteNavbar />
}
PRO Blocks

This is a PRO block. Upgrade your account to access the source code and install this block via CLI/MCP.

Upgrade to PRO
Transparent navigation bar for overlay use
transparent-navbar
import TransparentNavbar from "@/components/creative-tim/blocks/transparent-navbar"

export default function Page() {
  return <TransparentNavbar />
}
PRO Blocks

This is a PRO block. Upgrade your account to access the source code and install this block via CLI/MCP.

Upgrade to PRO
Dark filled navigation bar with white text
filled-navbar
import FilledNavbar from "@/components/creative-tim/blocks/filled-navbar"

export default function Page() {
  return <FilledNavbar />
}
PRO Blocks

This is a PRO block. Upgrade your account to access the source code and install this block via CLI/MCP.

Upgrade to PRO
Minimalist centered navigation bar
minimalist-navbar
import MinimalistNavbar from "@/components/creative-tim/blocks/minimalist-navbar"

export default function Page() {
  return <MinimalistNavbar />
}
PRO Blocks

This is a PRO block. Upgrade your account to access the source code and install this block via CLI/MCP.

Upgrade to PRO
Blurred glass-morphism navigation bar
blurred-navbar-example
import BlurredNavbarExample from "@/components/creative-tim/blocks/blurred-navbar-example"

export default function Page() {
  return <BlurredNavbarExample />
}

Frequently asked questions

Are these shadcn navbar blocks free?

Yes, the free navbars are copy-paste with no account, and fine for personal and commercial work. A handful of richer headers are PRO and labelled as such on the block.

Does the navbar work on mobile?

Yes. Each navbar ships with a responsive layout that collapses into a mobile menu, so you get the desktop bar and the mobile drawer from the same block without extra work.

How do I add it to my project?

Copy the code straight into your header component, or run the npx shadcn add command shown on the block to pull it in with its dependencies. Either way the code lives in your repo and stays editable.

Can I add my own logo and links?

That is the point. Swap the logo, change the menu items to your routes, add or remove the search and user menu, and restyle with Tailwind. Nothing is locked.

Will it work with Next.js routing?

Yes. They are plain React components, so you wire the links to your Next.js App Router (or any router) and they behave like any other nav. Tailwind and shadcn/ui need to be installed.