Navbar with prominent search input, navigation links, and action button for search-driven experiences. Perfect for marketplaces, directories, and content platforms prioritizing discovery.
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.
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.
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
npx shadcn add "https://ui.beste.co/r/navbar32?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
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).
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.
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:
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" }}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
logo | { text: string; href?: string } | – | Brand text and link; falls back to "Brand" / # when omitted |
navItems | NavItem[] | [] | Plain nav links shown next to the logo |
searchPlaceholder | string | "Search..." | Placeholder text for the search input |
onSearch | (query: string) => void | – | Called 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 |
className | string | – | Extra classes for the outer <nav> |
type NavItem = { label: string; href?: string };console.log("Search:", searchQuery)) in addition to calling onSearch.searchQuery state, so typing in either one updates both; only one is visible at a time based on the lg breakpoint.w-64) with a rounded container; the mobile search bar is full-width and fully rounded (rounded-full).lg (1024px). Below it, the hamburger opens a panel with search on top, nav links below, and the action button pinned at the bottom behind a divider.sticky top-0 z-50) with a solid bg-background and a bottom border, no blur.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.
navbar68
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.
navbar36
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.
navbar33
Navbar with hover-activated dropdowns supporting nested sub-menus for deep navigation hierarchies. Perfect for enterprise software and documentation sites with complex information architecture.
navbar39
Developer-focused navbar with Cmd+K command palette for keyboard-driven navigation and actions. Perfect for developer tools, documentation sites, and power-user applications.
navbar40
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.
navbar64
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.