A search button that grows across the app bar and opens grouped results below.
Import it and pass your content. The props that matter most are listed next.
"use client";
import * as React from "react";
import { useRouter } from "next/navigation";
import { SearchExpand, type SearchExpandGroup } from "@/components/ui/notchset/search-expand";
export function AppBar({ children }: { children: React.ReactNode }) {
const router = useRouter();
// Each result says what choosing it does: here, open its page.
const results: SearchExpandGroup[] = [
{ id: "agents", label: "AGENTS", items: [{ label: "Planner", meta: "PROD", onSelect: () => router.push("/agents/planner") }, { label: "Triage", meta: "STAGING", onSelect: () => router.push("/agents/triage") }] },
{ id: "runs", label: "RUNS", items: [{ label: "run_8f3a1", meta: "OK · 2.1S", onSelect: () => router.push("/runs/run_8f3a1") }, { label: "run_8f3a2", meta: "FAILED", tone: "signal", onSelect: () => router.push("/runs/run_8f3a2") }] },
];
return (
<SearchExpand
nav={
<nav className="flex gap-4 font-mono text-xs">
<a href="/agents">AGENTS</a>
<a href="/runs">RUNS</a>
</nav>
}
groups={results}
>
{children}
</SearchExpand>
);
}nav–
ReactNodeThe bar's left side; it fades away while searching.
groups–
{ id, label, items: { label, meta?, tone?, hollow?, onSelect? }[] }[]Results by scope.
children–
ReactNodeThe page; it dims while searching.
hotkey–
stringOpens search from anywhere (/).
SearchExpanddata-slot="search-expand-frame"
The frame.
keydata-slot="search-expand"
The widening key.
components/ui/notchset/search-expand.tsx
pnpm dlx shadcn@latest add https://notchset.dev/r/search-expand.jsonpnpm dlx shadcn@latest add https://notchset.dev/r/radix-nova/search-expand.jsonFree, no account or key. Use the command for your project's primitives: a radix-*, new-york or default style in components.json is Radix, a base-* style is Base UI. With the @notchset registry added, @notchset/<name> picks for you.
The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Give your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v1.0.0 · 2026-10-02
First release