Rewrite toolbar

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

Best for

AI rewriting on light pages, next to a formatting bar

Anatomy

A white pill under the selection with a Rewrite chip, icons and a hairline · one ink end slot: Stop while it writes, Replace once there is a result · the result card hangs under the pill with try again, discard and Changes · tone and your own instruction fold into more on a phone

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⌘↵replaceescstop or discard33 words selected

In the Orvain Library

Get Rewrite toolbar 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

04parts

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

  1. A white pill under the selectionwith a Rewrite chip, icons and a hairline
  2. One ink end slotStop while it writes, Replace once there is a result
  3. The result card hangs under the pill with try again, discard and Changes
  4. Tone and your own instruction fold into more on a phone

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 “Rewrite toolbar” block to this page: a white pill under the selection with a Rewrite chip, icons and a hairline, one ink end slot: Stop while it writes, Replace once there is a result, the result card hangs under the pill with try again, discard and Changes, tone and your own instruction fold into more on a phone.

Works in
Connect the MCP

Questions about Rewrite toolbar.

What is the Rewrite toolbar block?

Rewrite toolbar is a AI Chat block from Orvain UI, built for React and Vue with a matching Figma frame. Best for AI rewriting on light pages, next to a formatting bar.

What is the Rewrite toolbar block made of?

Is the Rewrite toolbar block responsive?

Is the Rewrite toolbar block accessible?

How do I add the Rewrite toolbar 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

Inline rewrite

Rewriting in place, without a result card

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.