How to build an accessible PromptSuggestions in React

A named group of real buttons whose names are the prompt text, operable with Tab and Enter/Space. Pills meet the coarse-pointer target size and keep a visible focus ring

When to use a PromptSuggestions

When not to use it

Keyboard interactions

Role group, verified at WCAG 2.2-AA.

Common mistakes

Avoid: Ten generic prompts ("Ask me anything")

Prefer: Three or four specific, tappable prompts

Specific starters show what the assistant can actually do; a long generic list is skipped

Example

<PromptSuggestions
  items={['Summarise this week’s tickets', 'Draft a release note', 'What changed in v2?']}
  onSelect={() => {}}
/>

See the full PromptSuggestions reference →