Copy a value to the clipboard and show clearly that it worked.
Import it and pass your content. The props that matter most are listed next.
import { CopyButton } from "@/components/ui/notchset/copy-button";
export function RunIdCopy({ runId }: { runId: string }) {
return <CopyButton value={runId} label="RUN ID" footnote="PLANNER · AUG 14 · 09:12:04" />;
}value–
stringWhat is copied and shown.
label–
stringThe legend above the field.
kbd–
stringA shortcut shown in the legend (display only).
footnote–
stringThe line under the field.
timeout–
numberHow long the copied state holds (ms). Default 1700.
onCopy–
(value) => voidCalled after a successful copy.
labels–
Partial<CopyButtonLabels>Every word, for other languages.
CopyButtondata-slot="copy-button"
The legend, field, key and footnote.
Fielddata-slot="copy-button-field"
The value and the attached key.
Keydata-slot="copy-button-key"
The copy button.
components/ui/notchset/copy-button.tsx
pnpm dlx shadcn@latest add https://notchset.dev/r/copy-button.jsonpnpm dlx shadcn@latest add https://notchset.dev/r/radix-nova/copy-button.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