A value in a mono field with a key on the right. Copying fills the key with ink and traces a check, the field flips to COPIED · 12 CHARS, the footnote says what to do next and the legend's node lights, then it all reverts.
pnpm dlx shadcn@latest add https://beautiful-ui.dev/r/copy-button.jsonpnpm dlx shadcn@latest add https://beautiful-ui.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 @beautiful-ui registry added, @beautiful-ui/<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.
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.
components/ui/notchset/copy-button.tsx