Key caps that match the platform, and shortcuts that press in and run.
Import it and pass your content. The props that matter most are listed next.
import { Kbd, KbdGroup, Shortcut } from "@/components/ui/notchset/kbd";
export function SearchHint({ focus }: { focus: () => void }) {
return (
<>
<KbdGroup><Kbd k="mod" /><Kbd k="k" /></KbdGroup>
<Shortcut keys="mod+k" onTrigger={focus} />
</>
);
}k (Kbd)–
stringA key name (mod, shift, enter, k) shown for the platform.
keys (Shortcut)–
stringA combo (mod+k) or a sequence (g r).
onTrigger (Shortcut)–
() => voidRuns on the keys; without it the shortcut is only a hint.
scope (Shortcut, useShortcut)–
RefObject<HTMLElement>Fire only while focus is inside this element.
platform (KbdProvider)–
'auto' | 'mac' | 'windows'Pin the symbols; auto reads the device.
Kbddata-slot="kbd"
One key cap.
KbdGroupdata-slot="kbd-group"
Caps side by side.
Shortcutdata-slot="shortcut"
A combo or sequence that shows and runs.
KbdProvider / useShortcutdata-slot="kbd"
Pin the platform; bind keys without a hint.
components/ui/notchset/kbd.tsx
pnpm dlx shadcn@latest add https://notchset.dev/r/kbd.jsonpnpm dlx shadcn@latest add https://notchset.dev/r/radix-nova/kbd.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-04
First release