A thing's actions, from a button; a sheet on a phone.
Every shadcn style · one file
v2.0 · Updated Oct 13pnpm dlx shadcn@latest add https://notchset.dev/r/menu.jsonpnpm dlx shadcn@latest add https://notchset.dev/r/menu.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 { ArrowRightLeft, Ellipsis, Pencil, Pin, Trash2 } from "lucide-react";
import { Button } from "@/components/ui/notchset/button";
import { Menu, MenuGroup, MenuItem, MenuSeparator } from "@/components/ui/notchset/menu";
export default function MenuDemo() {
const [last, setLast] = React.useState<string | null>(null);
// The hints the items print are bound here, as an app binds them: E and P, never while typing in a field.
React.useEffect(() => {
const onKey = (e: KeyboardEvent) => {
const t = e.target as HTMLElement | null;
if (e.metaKey || e.ctrlKey || e.altKey || e.repeat || t?.closest("input, textarea, select, [contenteditable='true']")) return;
if (e.key === "e" || e.key === "E") setLast("Editing Airtable");
else if (e.key === "p" || e.key === "P") setLast("Pinned Airtable");
};
document.addEventListener("keydown", onKey);
return () => document.removeEventListener("keydown", onKey);
}, []);
return (
<div className="flex items-center gap-3">
<Menu
trigger={
<Button square aria-label="More actions for Airtable">
<Ellipsis />
</Button>
}
>
<MenuItem icon={<Pencil />} shortcut="E" onClick={() => setLast("Editing Airtable")}>
Edit
</MenuItem>
<MenuItem icon={<Pin />} shortcut="P" onClick={() => setLast("Pinned Airtable")}>
Pin to sidebar
</MenuItem>
<MenuSeparator />
<MenuGroup label="Move to">
{["Discovery", "Evaluation", "Proposal"].map((k) => (
<MenuItem key={k} icon={<ArrowRightLeft />} onClick={() => setLast(`Moved to ${k}`)}>
{k}
</MenuItem>
))}
</MenuGroup>
<MenuSeparator />
<MenuItem icon={<Trash2 />} danger onClick={() => setLast("Delete Airtable…")}>
Delete Airtable…
</MenuItem>
</Menu>
{last && <span className="text-[length:var(--ns-text-small)] text-[var(--ns-ink-3)]">{last}</span>}
</div>
);
}This example also uses Button. This command installs them with it, so the example pastes as it is:
pnpm dlx shadcn@latest add https://notchset.dev/r/menu.json https://notchset.dev/r/button.jsoncomponents/ui/notchset/menu.tsx
trigger–
React.ReactElementThe button that opens it: one element that takes a ref.
align"start"
"start" | "center" | "end"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.