Skip to content
uifiles
Browse components
ChatComponent

Suggestion

Horizontally scrolling row of pill-shaped suggestion buttons ("Summarize this repo", "Explain the auth flow") shown under an empty conversation or above the prompt input to give users one-click starting prompts. Suggestions wraps children in a hidden-scrollbar scroll area; Suggestion is an outline button that calls onClick with its suggestion string. Pair with prompt-input to prefill the textarea. Composes button and scroll-area.

pnpm dlx shadcn@latest add @uifiles/suggestion
Installs with

Suggestions under an empty conversation

A row of prompts that scrolls sideways when it overflows. Pick one to see what the handler receives.

Pick a suggestion.