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

Navbar built around a prominent inline search field for marketplaces, directories, and content platforms where discovery is the primary action, alongside a small link group and a single call-to-action button.

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/navbar32?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

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

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

Quick start

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

tsx
import { Navbar32, navbar32Demo } from "@/components/beste/block/navbar32";

export default function Layout() {
  return <Navbar32 {...navbar32Demo} />;
}

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

tsx
import { Navbar32 } from "@/components/beste/block/navbar32";

export default function Layout() {
  return (
    <Navbar32
      logo={{ text: "Marketplace", href: "/" }}
      navItems={[
        { label: "Browse", href: "/browse" },
        { label: "Trending", href: "/trending" },
      ]}
      searchPlaceholder="Search listings..."
      onSearch={(query) => console.log("search", query)}
      actionButton={{ label: "Post a listing", href: "/new" }}
    />
  );
}

Props

PropTypeDefaultDescription
logo{ text: string; href?: string }Brand text and link; falls back to "Brand" / # when omitted
navItemsNavItem[][]Plain nav links shown next to the logo
searchPlaceholderstring"Search..."Placeholder text for the search input
onSearch(query: string) => voidCalled with the trimmed query on submit (Enter or arrow button)
actionButton{ label: string; href?: string }Single call-to-action button after the search bar; omitted if not passed
classNamestringExtra classes for the outer <nav>
ts
type NavItem = { label: string; href?: string };

Behavior notes

Wiring the form up

This block ships the form markup only; state, validation, and submit are yours to add. Our guide wires the shadcn Field primitives to React Hook Form, TanStack Form, and Formisch on one field system.

More Navigation blocks

View all Navigation
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

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.

PRO

navbar39

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

navbar40

Breadcrumb Navbar

Two-row navbar with main navigation and secondary breadcrumb bar for hierarchical content paths. Perfect for e-commerce product pages and documentation with deep category structures.

PRO

navbar64

Fullscreen Overlay Navbar

A quiet top bar whose menu button opens a full-screen overlay — oversized numbered links with hover arrows, a contact block and social row beneath. Pure Auralis big type.