# AI Inline Writer

Document editor where the writer selects a paragraph and improves, shortens or expands it without leaving the flow.

- id: `ai-inline-writer`
- Page: https://agentic-ui-kit.com/components/ai-inline-writer
- Live preview: https://agentic-ui-kit.com/live/component/ai-inline-writer

## Install

```bash
agentic-ui add ai-inline-writer
npx shadcn@4.17.0 add @agentic-ui/ai-inline-writer
```

## Metadata

- **Level:** block
- **Category:** block
- **Installable in:** Radix UI (registry variant new-york)
- **Capabilities:** selection-bubble-menu, rewrite-improve, rewrite-shorten, rewrite-expand, translate-selection, change-tone, inline-preview-before-apply, accept-discard-rewrite, keyboard-shortcuts, loading-state, error-recovery
- **Intents:** create-edit, generate-content, communicate
- **Suits domains:** ai-content, ai-workspace, notes, knowledge, crm, marketing
- **Interaction:** text-selection, bubble-menu, keyboard-shortcuts, preview-accept-discard, retry-on-error
- **Screen role:** detail
- **Density:** compact
- **Dark mode:** yes
- **Use it for:** document editor where the writer selects a paragraph and improves, shortens or expands it without leaving the flow, email client that translates or changes the tone of a selected fragment before sending, CRM that rewrites a sales note selected by the agent in a professional tone, internal knowledge base where long passages are condensed while the rest of the article stays intact
- **Avoid when:** a batch of suggestions already computed over the whole document is being reviewed (use ai-suggestion-diff), the text is read-only and cannot be edited by the user, the transformation must be applied automatically without prior human review
- **Preserve when adapting:** selection-anchored-placement, preview-before-apply-contract, keyboard-contract, aria-live-announcements, range-accurate-replacement
- **Replace when adapting:** domain-copy, action-set-and-shortcuts, rewrite-provider
- **Adaptation effort:** low
- **Coupling:** low
- **Quality score:** 9.2/10
- **Quality breakdown:** visual 9/10, responsive 9/10, accessibility 9/10, code 9/10
- **Uses primitives:** badge, button, separator
- **Motion:** profile subtle, library css, reduced-motion fallback yes
- **Registry dependencies:** lib-primitives
