Inline rewrite

Inline rewrite is a AI Chat block from Orvain UI, built for React and Vue with a matching Figma frame.

Best for

Rewriting in place, without a result card

Anatomy

A tiny Ask pill at the end of the selection · ⌘J opens a field with suggestions, translate and tone in place · the rewrite streams into the sentence behind a caret while the old words fade · the pill becomes replace, retry or discard · restore the original

MCPConnect the MCP server
Draft · About page

Why we built Orvain

We started Orvain to stop rebuilding the same button in every project.

Our design system have lots of components that teams can use for building there product faster, and it make sure everything look the same across all of the different apps we are making.

Today it runs the dashboard, the mobile app and this website. Every component ships in React and Vue with the same props, tokens and dark mode, so a fix lands everywhere at once.

←→move⌘Jask⌘↵replaceescstop or discard33 words selected

In the Orvain Library

Get Inline rewrite for your product

The block’s code in React and Vue, its frame in the Figma file, and the Orvain MCP so your AI tools build with it. Part of every Library plan, alongside every other block.

  • React
  • Vue
  • Figma frame
  • Orvain MCP

About this block

Part of AI Chat

What’s inside

05parts

The pieces it is built from. Keep them all, or drop the ones your product doesn’t need.

  1. A tiny Ask pill at the end of the selection
  2. ⌘J opens a fieldwith suggestions, translate and tone in place
  3. The rewrite streams into the sentence behind a caret while the old words fade
  4. The pill becomes replaceretry or discard
  5. Restore the original

Responsive behaviour

840 px

Drawn at this width and never stretched past it. Below it, controls, text and spacing step down from the box the block sits in, not the window.

1440pxDesktop · 12 columns

When to use it

Where AI Chat earns its place

Reach for AI Chat

  • An assistant that answers from your own content, where showing the sources is what makes an answer usable.
  • A team that reuses the same handful of prompts and should not have to retype them.
  • Writing help on text someone has already written, where they want to see the change before accepting it.

Reach for something else

  • A fixed set of questions with fixed answers. An FAQ in the Accordion family is faster to read and cannot be wrong.
  • Search over records. A command menu or a filtered list returns the records themselves rather than a paragraph about them.
  • One-shot generation with no follow-up, such as a summary on a page. Show the result in a card with a regenerate action rather than opening a thread.

Accessibility

06to keep

What the block ships with. Hold on to these as you make it yours.

  • Named controlsEvery icon-only button keeps a text label, so a screen reader can say what it does.
  • Keyboard firstEvery control is reachable with Tab, and its focus ring stays visible.
  • More than colourA state never rides on colour alone; a mark or a word goes with it.
  • Contrast holdsRetheme freely, but keep text at or above the contrast it ships with.
  • Calm motionFor visitors who ask for reduced motion, things simply appear.
  • Room to hitTargets stay at least 24px, with space between neighbours.

Notes for AI

1 line

Is all your assistant needs. With the Orvain MCP connected, it builds the block from your own tokens and components.

Add the Orvain “Inline rewrite” block to this page: a tiny Ask pill at the end of the selection, ⌘J opens a field with suggestions, translate and tone in place, the rewrite streams into the sentence behind a caret while the old words fade, the pill becomes replace, retry or discard, restore the original.

Works in
Connect the MCP

Questions about Inline rewrite.

What is the Inline rewrite block?

Inline rewrite is a AI Chat block from Orvain UI, built for React and Vue with a matching Figma frame. Best for rewriting in place, without a result card.

What is the Inline rewrite block made of?

Is the Inline rewrite block responsive?

Is the Inline rewrite block accessible?

How do I add the Inline rewrite block to my project?

When should I not use a AI Chat block?

More AI Chat blocks

All AI Chat

Assistant thread

An assistant panel that answers from your own content and shows its research

Assistant with voice

An assistant people can talk to as well as type to

Assistant home

The first screen of an assistant, before anything is asked

Prompt library

Saved prompts a team reuses, one click from the composer

Rewrite selection

Writing help on text someone has already written

Rewrite toolbar

AI rewriting on light pages, next to a formatting bar

The Orvain Dispatch

Premium components, free in your inbox.

Join the Orvain Dispatch and get production-ready components, free to keep: React and Vue code plus the Figma frame, yours to ship.

Just components, never spam. You can unsubscribe anytime.