Follow-up Suggestions
Contextual next-step prompts that invite a useful continuation after an answer.
Loading component preview…
Installation
Add the component source directly to your project.
pnpm dlx shadcn@latest add https://pastaui.com/r/follow-up-suggestions.jsonAPI reference
Follow-up Suggestions
| Prop | Type | Default | Description |
|---|---|---|---|
items | FollowUpSuggestion[] | — | Provides the numbered next-step options. |
selectedId | string | — | Controls the currently selected suggestion. |
onSelect | (id: string) => void | — | Submits a selected suggestion. |
onDismiss | () => void | — | Dismisses the suggestion card. |