A search box that lists recent projects on focus and filters with env: and owner:.
Import it and pass your content. The props that matter most are listed next.
"use client";
import { useRouter } from "next/navigation";
import { SearchProjects, type SearchProject } from "@/components/ui/notchset/search-projects";
const projects: SearchProject[] = [
{ id: "planner", name: "Planner", env: "PROD", owner: "MAYA", detail: "12 AGENTS", spark: [8, 9, 7, 10, 12, 11, 13, 14] },
{ id: "triage", name: "Triage", env: "STAGING", owner: "JONAS", detail: "4 AGENTS" },
];
export function ProjectSwitcher() {
const router = useRouter();
return <SearchProjects projects={projects} me="MAYA" onSelect={(p) => router.push(`/p/${p.id}`)} />;
}projects–
{ id, name, env, owner, detail?, spark? }[]The list.
recent–
string[]Ids shown before typing.
filters–
[prefix, value][]The chips (env:prod, owner:me…).
me–
stringWho owner:me means.
onSelect / onCreate–
fnOpen a project; create one from the query.
hotkey–
stringFocuses it from anywhere (/).
SearchProjectsdata-slot="search-projects"
The field and list.
components/ui/notchset/search-projects.tsx
pnpm dlx shadcn@latest add https://notchset.dev/r/search-projects.jsonpnpm dlx shadcn@latest add https://notchset.dev/r/radix-nova/search-projects.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