Click text to edit it where it is, with an optimistic save and retry.
Import it and pass your content. The props that matter most are listed next.
"use client";
import { InlineEdit, InlineEditGroup, InlineEditStatus } from "@/components/ui/notchset/inline-edit";
export function AgentDetails({ name, description, save }: { name: string; description: string; save: (patch: { name?: string; description?: string }) => Promise<void> }) {
return (
<InlineEditGroup>
<InlineEdit label="NAME" value={name} onCommit={(v) => save({ name: v })} />
<InlineEdit label="DESCRIPTION" value={description} onCommit={(v) => save({ description: v })} multiline />
<InlineEditStatus />
</InlineEditGroup>
);
}label / value–
stringThe field.
onCommit–
(value) => PromiseSave it; reject (or resolve false) to revert.
multiline / maxLength–
boolean / numberA textarea (⌘↵ saves) and its limit (40, 160 multiline).
InlineEditGroup / InlineEditStatus–
componentsShare one status line (saving, saved, error with Retry) and frame state.
InlineEditdata-slot="inline-edit"
One field.
InlineEditGroupdata-slot="inline-edit-group"
Shared state.
InlineEditStatusdata-slot="inline-edit-status"
The status line.
components/ui/notchset/inline-edit.tsx
pnpm dlx shadcn@latest add https://notchset.dev/r/inline-edit.jsonpnpm dlx shadcn@latest add https://notchset.dev/r/radix-nova/inline-edit.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