Skip to content

SuggestionChips

Stable

A row of ready-made questions a person can pick.

Also known as suggestions, suggested prompts, quick replies, prompt starters

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

Pick a prompt

Nothing picked yet.

It does not remember the choice. Here the demo keeps it.

When to use it

Gives a person a ready-made next step instead of a blank box. Each suggestion is a short button holding the exact words.

Made of: List · Suggestion

Use it for

  • An empty chat, to show what the assistant can do.
  • After a reply, to offer likely follow-up questions.

Not for

Do and avoid

Do. A few short choices give people an easy next step.
Avoid. Long sentences and repeats are hard to read and to choose from.

Do

  • Offer three to five suggestions, worded the way the person would say them.
  • Make each one a complete request that makes sense on its own.
  • Change them as the conversation moves on.

Avoid

  • Do not show suggestions while a reply is still appearing. They compete with it.
  • Do not repeat the same suggestion twice.
  • Do not use long sentences. A paragraph inside a small button is hard to read.

On a phone

  • Chips wrap onto new rows instead of scrolling sideways.
  • Each chip keeps its size and has a 44px tap area on touch screens.
  • A tap calls onPick, and no part of it needs hover.

Build your next AI screen with Tattva.

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

Get started