Prompt library

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

Best for

Saved prompts a team reuses, one click from the composer

Anatomy

A layered composer: a grey strip with the saved count and categories, the white input, attach and an ink Prompts pill with a “/” keycap · the pill, or “/” in an empty composer, grows into an ink library panel: search as you type, prompts grouped by category with a highlight that slides to the active row, and a preview of the blanks · a picked prompt lands as a sentence with blanks sized to their text · Tab or Enter moves between blanks, Enter on the last sends · the strip carries the prompt with ×, a dot per blank and “1 of 2 filled” → “Ready to send” · the reply streams and send becomes “Stop esc” · Escape folds the panel back and returns focus

MCPConnect the MCP server

Which token sets the page gutter?

space.page.gutter: 32px on desktop, 24px on a tablet and 16px on a phone.

Prompts · 9 savedReview · Build · Write

In the Orvain Library

Get Prompt library 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

07parts

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

  1. A layered composera grey strip with the saved count and categories, the white input, attach and an ink Prompts pill with a “/” keycap
  2. The pillor “/” in an empty composer, grows into an ink library panel: search as you type, prompts grouped by category with a highlight that slides to the active row, and a preview of the blanks
  3. A picked prompt landsas a sentence with blanks sized to their text
  4. Tab or Enter moves between blanksEnter on the last sends
  5. The strip carries the promptwith ×, a dot per blank and “1 of 2 filled” → “Ready to send”
  6. The reply streams and send becomes “Stop esc”
  7. Escape folds the panel back and returns focus

Responsive behaviour

720 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 “Prompt library” block to this page: a layered composer: a grey strip with the saved count and categories, the white input, attach and an ink Prompts pill with a “/” keycap, the pill, or “/” in an empty composer, grows into an ink library panel: search as you type, prompts grouped by category with a highlight that slides to the active row, and a preview of the blanks, a picked prompt lands as a sentence with blanks sized to their text, Tab or Enter moves between blanks, Enter on the last sends, the strip carries the prompt with ×, a dot per blank and “1 of 2 filled” → “Ready to send”, the reply streams and send becomes “Stop esc”, Escape folds the panel back and returns focus.

Works in
Connect the MCP

Questions about Prompt library.

What is the Prompt library block?

Prompt library is a AI Chat block from Orvain UI, built for React and Vue with a matching Figma frame. Best for saved prompts a team reuses, one click from the composer.

What is the Prompt library block made of?

Is the Prompt library block responsive?

Is the Prompt library block accessible?

How do I add the Prompt library 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

Rewrite selection

Writing help on text someone has already written

Rewrite toolbar

AI rewriting on light pages, next to a formatting bar

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.