AI inline edit

Pro

Select text, ask AI, and the rewrite streams into the sentence as a live word diff with removed words struck red and new words green, then accept, reject or retry from a floating panel or the keyboard.

A recording of the component itself. With Pro you get its full source and it runs in your app.

What you get

  • Streams from any async iterator, cancellable
  • A word-level diff grouped so phrases read cleanly
  • The panel follows the selection as the diff reflows
  • Full keyboard path with Ctrl or Cmd shortcuts
  • One TypeScript file in your project, yours to edit. No runtime package.
  • Keyboard, screen reader and reduced motion support; light and dark; your shadcn theme.

Install

npx shadcn@latest add @goodui-pro/ai-inline-edit

Needs a Pro license key in your registry config: two-minute setup. The file lands in components/goodui/ai-inline-edit.tsx.

More Pro components

Node editor

A node graph editor for agent flows: drag nodes and bezier wires follow, pull a wire between typed ports, then run it and watch nodes light up while pulses travel the wires. Pan, zoom, box select, minimap.

Pro

Image generation loader

An AI image placeholder: grain resolves blur to sharp in steps while a scan line sweeps detail down the frame, then a final pass reveals the real image under a prompt caption.

Pro

Tool approval card

An agent tool-call card awaiting approval: arguments show as a JSON diff against the previous call, can be edited with live validation, and states animate through approve, running with a timer, done or denied.

Pro