Docs
Prompt Suggestions
Prompt Suggestions
A component that displays clickable prompt suggestions for empty chat states.
Try one of these prompts!
The PromptSuggestions component displays a grid of predefined prompts that users can click to quickly start a conversation.
Usage
Props
Prop | Type | Description |
---|---|---|
label | string | The heading text displayed above the suggestions |
append | (message: { role: "user"; content: string }) => void | Function called when a suggestion is clicked |
suggestions | string[] | Array of suggestion strings to display as buttons |