Skip to main content

Suggestions

Offer prompts to start from, as a row of chips or a grid of cards.

View as Markdown

Installation

Component API

PropTypeDefaultDescription
itemsSuggestion[]-The prompts to start from.
The prompts to start from.
onSelect(suggestion: Suggestion) => void-Called with the picked suggestion, such as to fill the prompt.
Called with the picked suggestion, such as to fill the prompt.
variantchips | cardschipsA row of chips that wraps, or a grid of cards for an empty chat.
A row of chips that wraps, or a grid of cards for an empty chat.
shapenone | rounded | pillrounded
classNamestring-
focusboolean | stringtrue