Text that edits in place: a dashed underline and a pen on hover, the same font when editing under an ink line that draws in, and an optimistic save that reverts with Retry if it fails.
pnpm dlx shadcn@latest add @beautiful-ui-pro/inline-editNeeds your registry key. Your components.json style picks the Base UI or Radix build: radix-*, new-york and default get Radix, base-* gets Base UI.
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.
"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.
components/ui/notchset/inline-edit.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.