Command Palette Navbar

Developer-focused navbar with Cmd+K command palette for keyboard-driven navigation and actions. Perfect for developer tools, documentation sites, and power-user applications.

PRO

A developer-tool style navbar built around a Cmd+K / Ctrl+K command palette instead of a wide link list. Desktop shows a short primary nav plus a search-looking trigger button with a ⌘K hint; clicking it (or the keyboard shortcut) opens a CommandDialog listing commandItems grouped by category, with fuzzy filtering and optional keyboard shortcut badges baked in by the underlying shadcn Command primitive.

Upgrade to Pro

Pro blocks install through the shadcn CLI with your license key and ship their full source. Docs and live previews stay open to everyone, so you can read every block's details first.

Installation

Swap YOUR_EMAIL and YOUR_KEY for the email and license key on your account. Find your license key on your account page.

Radix flavor

bash
npx shadcn add "https://ui.beste.co/r/navbar39?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

bash
npx shadcn add "https://ui.beste.co/r-base/navbar39?email=YOUR_EMAIL&license_key=YOUR_KEY"

This installs the block to components/beste/block/navbar39.tsx and the shadcn/ui dependencies it needs (button, command).

Quick start

The installed file exports navbar39Demo alongside the block: the exact props behind the preview above. Spread it to get a working navbar in one line.

tsx
import { Navbar39, navbar39Demo } from "@/components/beste/block/navbar39";

export default function Layout() {
  return <Navbar39 {...navbar39Demo} />;
}

Then replace the demo with your own props. Written out, a trimmed setup looks like this:

tsx
import { Navbar39 } from "@/components/beste/block/navbar39";

export default function Layout() {
  return (
    <Navbar39
      logo={{ text: "CmdNav", href: "/" }}
      navItems={[
        { label: "Docs", href: "/docs" },
        { label: "Components", href: "/components" },
      ]}
      commandItems={[
        { label: "Home", href: "/", category: "Pages", shortcut: "H" },
        { label: "Documentation", href: "/docs", category: "Pages", shortcut: "D" },
        { label: "GitHub", href: "https://github.com", category: "Links" },
      ]}
      searchPlaceholder="Type a command or search..."
      buttons={[{ label: "Get Started", variant: "default", href: "/signup" }]}
    />
  );
}

Props

PropTypeDefaultDescription
logo{ text: string; href?: string }Brand text and link, shown at the left
navItemsNavItem[][]Short primary nav links, shown next to the logo
commandItemsCommandItemProps[][]Entries listed inside the command palette, grouped by category
searchPlaceholderstring"Type a command or search..."Placeholder for both the trigger button label context and the palette's search input
buttonsArray<{ label: string; href?: string; variant?: "default" | "outline" | "ghost" }>[]Action buttons rendered right of the search trigger, repeated in the mobile panel
classNamestringExtra classes for the outer <nav>
ts
type NavItem = { label: string; href?: string };

type CommandItemProps = {
  label: string;
  href?: string;
  category?: string;
  shortcut?: string;
};

Items with no category are grouped under "Other".

Behavior notes

More Navigation blocks

View all Navigation
PRO

navbar32

Search-Focused Navbar

Navbar with prominent search input, navigation links, and action button for search-driven experiences. Perfect for marketplaces, directories, and content platforms prioritizing discovery.

PRO

navbar68

Command Search Navbar

Search-forward navbar — a wide rounded search field sits at the center with an animated submit seal, framed by the wordmark, quiet links and a pill CTA.

PRO

navbar36

Tab-Style Navbar

Navbar with tab-style navigation supporting underline or pill active states for app-like navigation. Perfect for dashboards and admin panels with section-based interfaces.

PRO

navbar58

Monogram Navbar

Minimal stacked navbar — a large primary logo square with the wordmark tucked into its corner, over a quiet ruled row of uppercase links. No buttons, no hamburger.

PRO

navbar42

Grid Cell Navbar

Table-inspired navbar with full-height bordered link cells, an availability cell and a dark full-height seal CTA cell.

PRO

navbar33

Multi-Level Dropdown Nav

Navbar with hover-activated dropdowns supporting nested sub-menus for deep navigation hierarchies. Perfect for enterprise software and documentation sites with complex information architecture.