App Header navbar
SaaS app header: a signed-in app's header: workspace switcher, keyboard search, notifications and account.
Features
- A workspace switcher with a field to find a workspace by name
- A real search field that ⌘K or Ctrl+K jumps to from anywhere
- Notifications with faces, a quiet unread dot and Mark all as read
- An account menu with the person's photo, their links and Log out
- The app's pages as tabs underneath, with an ink bar that slides to the current one
Best for: Dashboards, SaaS apps and internal tools: the header people see after they sign in.
Installation
npm install motion lucide-react clsx tailwind-mergeThen copy the files from the Code tab into the same paths in your project, in TypeScript or JavaScript.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| logo | ReactNode | - | Your product's mark. |
| workspace | Workspace | - | The current workspace: name, detail, href. |
| workspaces | Workspace[] | - | Every workspace the person can switch to. |
| createWorkspace | { label: string; href: string } | - | Optional last row. |
| items | NavItem[] | - | The app's pages, shown as tabs. |
| notifications | AppNotification[] | - | id, who, what, when, optional avatar and isUnread. |
| user | AppUser | - | name, email, avatar, links and logout. |
| onSearch | (query: string) => void | - | Called when the search is submitted. |
| className | string | - | Extra classes for the header. |
FAQ
Is the App Header navbar free to use?
Yes. App Header is free to copy into your own projects. Open the Code tab and paste the files into your app.
Does App Header work with Next.js and React?
Yes. It's a React client component made for the Next.js App Router, styled with Tailwind CSS and animated with Framer Motion (the motion package).
Can I use App Header in JavaScript instead of TypeScript?
Yes. Every file comes in TypeScript and JavaScript. Switch the language in the Code tab.
What does App Header need installed?
motion, lucide-react, clsx, tailwind-merge, plus the shared helpers from the Installation page.
Is App Header accessible?
Every link and button is reachable by keyboard with a visible focus ring, and the animation stays still for visitors who ask for reduced motion.