Skip to content

EditScopeChip

Stable

Says exactly what an AI edit will change, such as Slide 3 or Whole deck, and lets the person change it before sending.

Also known as edit scope, selection scope

Install with npm install @tattva/ui (setup), or copy the code from the kit in Downloads.

In a composer

The chip names what the request will change. Open it to pick this chart title, slide 3, slides 3 to 5 or the whole deck. The whole deck shows its cost beside the chip before you send.

When to use it

Makes the reach of an AI edit visible and changeable, so a request meant for one slide never rewrites the deck.

Made of: AI mark · Prefix (Edit) · Scope icon · Scope in words · Chevron · Menu of scopes with check · Cost line for the whole deck

Use it for

  • The composer of a deck or document editor, beside the send button.
  • A selection toolbar, where the selection sets the scope and the person can widen it.
  • Any AI edit where a wider scope costs more or changes more.

Not for

  • Choosing which files or chats the AI reads: use ContextChip.
  • A general list of actions: use Menu.
  • Reviewing what the edit changed afterwards: use DiffView.

Do and avoid

Ask: fix the chart title

Do. The chip shows the edit only touches slide 3.

Ask: fix the chart title

All 12 slides, about 40 credits
Avoid. A small fix was widened to the whole deck without asking.

Do

  • Default to the narrowest scope the selection gives.
  • Show the cost of a whole-deck edit before the person sends.
  • Use plain words: Slide 3, Slides 3 to 5, Whole deck.

Avoid

  • Don't fill the chip with the AI colour; only the small mark uses it.
  • Don't widen the scope by yourself after the person chose it.
  • Don't hide a locked chip; say why it cannot change.

On a phone

  • The chip keeps its drawn size and gains a 44px tap area on touch screens.
  • The menu opens as a bottom sheet on phones, with 44px rows.
  • The scope text truncates on very narrow screens; the full scope stays in the accessible name and in the menu.

Seen in products

  • Gamma's AI edit mode shows the clicked element as selected in the chat, and its scope can be an element, a card or the whole deck.
  • Google Slides offers preset edits on a selection: rephrase, shorten, formalize, bulletize.

Build your next AI screen with Tattva.

Free and open, with the code. Start in one line.

Get started