Which model answers, named by what it's for.
Every shadcn style · one file
v2.0 · Updated Oct 13pnpm dlx shadcn@latest add https://notchset.dev/r/model-selector.jsonpnpm dlx shadcn@latest add https://notchset.dev/r/model-selector.jsonFree, no account or key. One command for every shadcn style. With the @notchset registry added, @notchset/<name> works too.
Works with React 18.3 or 19 on Tailwind CSS v4, in any shadcn project. What's tested
pnpm add @base-ui/react@^1 lucide-react@^1The 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.
Import it and pass your content. The props that matter most are listed next.
"use client";
import * as React from "react";
import { ModelSelector, type ModelChoice } from "@/components/ui/notchset/model-selector";
const CHOICES: ModelChoice[] = [
{ id: "fast", purpose: "Fast", note: "Quick answers and short drafts", name: "Claude Haiku 5.5" },
{ id: "balanced", purpose: "Balanced", note: "Most questions; thinks longer when it helps", name: "Claude Opus 5.5" },
{ id: "deep", purpose: "Deep thinking", note: "Hard problems, plans and analysis", name: "Claude Opus 5.5", unavailable: "Busy right now: try again in a few minutes" },
];
export default function ModelSelectorDemo() {
const [value, setValue] = React.useState("balanced");
const [open, setOpen] = React.useState(false);
/* the host binds the shortcut: ⌘⇧M (Ctrl+Shift+M) opens the choices */
React.useEffect(() => {
const key = (e: KeyboardEvent) => {
if ((e.metaKey || e.ctrlKey) && e.shiftKey && e.key.toLowerCase() === "m" && !e.isComposing) {
e.preventDefault();
setOpen(true);
}
};
addEventListener("keydown", key);
return () => removeEventListener("keydown", key);
}, []);
return (
<div className="flex flex-wrap items-center gap-4">
<ModelSelector choices={CHOICES} value={value} onValueChange={setValue} open={open} onOpenChange={setOpen} />
<ModelSelector choices={CHOICES} value="fast" onValueChange={() => {}} lockedBy="Support assistant" />
</div>
);
}components/ui/notchset/model-selector.tsx
choices–
ModelChoice[]Required.
value–
stringRequired.
onValueChange–
(id: string) => voidRequired.
lockedBy–
stringwho fixed the model ("Support assistant"): no menu, the choice is said as set
open–
booleanonOpenChange–
(open: boolean) => voidGive your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v2.0.0 · 2026-10-13
Released with the Notchset system.
The same file, at work in a finished app. Open it live and find it on its pages.
Agent UI. An assistant people trust: ask, pick a model, watch the answer stream in with its receipt, and approve what it does.
4 free · 6 ProSee the Agent UI kit