A bar with brand, links and a search icon that widens into a full input, pushing the links aside, while a Categories trigger drops a two-column floating card. On a phone the search takes over the bar and the filtered link list below it becomes the menu. Every panel stays in the markup and is toggled with CSS.
A bar with the brand, a Categories dropdown and plain links, plus a search icon that grows into a wide input and pushes the links aside as it opens. On a phone the search field takes over the bar and the filtered list of links beneath it is the menu.
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.
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://beste.dev/r/navbar105?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://beste.dev/r-base/navbar105?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/navbar105.tsx plus the shadcn button and input primitives it uses.
The installed file exports navbar105Demo alongside the block: the exact props behind the preview above. Spread it to get a working navbar in one line.
import { Navbar105, navbar105Demo } from "@/components/beste/block/navbar105";
export default function Page() {
return <Navbar105 {...navbar105Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { Navbar105 } from "@/components/beste/block/navbar105";
export default function Page() {
return (
<Navbar105
brand="Fieldnote"
categories={{
label: "Categories",
columns: [
{
title: "Notebooks",
links: [
{ label: "Pocket notebooks", href: "/notebooks/pocket" },
{ label: "Hardcover journals", href: "/notebooks/hardcover" },
],
},
{
title: "Desk",
links: [
{ label: "Pens and pencils", href: "/desk/pens" },
{ label: "Planners", href: "/desk/planners" },
],
},
],
}}
links={[
{ label: "New", href: "/new" },
{ label: "Stories", href: "/stories" },
]}
button={{ label: "Cart", href: "/cart", variant: "outline" }}
labels={{ search: "Search", close: "Close search", placeholder: "Search products and pages", noResults: "Nothing matches that yet.", pages: "Pages" }}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
brand | string | – | Wordmark on the left |
categories | { label: string; columns: CategoryColumn[] } | – | The dropdown trigger and its two link columns |
links | NavItem[] | [] | Plain links beside the dropdown; listed under labels.pages in search results |
button | ActionButton | – | Action on the right, shown on every viewport |
labels | { search?: string; close?: string; placeholder?: string; noResults?: string; pages?: string } | {} | Accessible names, the input placeholder, the empty state line and the heading for plain links in results |
className | string | – | Extra classes for the outer <header> |
type CategoryColumn = {
title: string;
links: NavItem[];
};
type NavItem = {
label: string;
href: string;
};
type ActionButton = {
label: string;
href: string;
variant?: "default" | "outline" | "ghost" | "secondary";
};form whose width transitions from w-8 to w-72; the input sits inside it and only fades in, and because the links ml-auto toward it, growing the field pushes them left.(min-width: 768px) media query picks between the desktop and mobile inputs.absolute inset-0 over the bar and the result panel drops under it, capped at calc(100vh - 4rem) with its own scroll; links in either close everything on click.