Conversation
Suggestions
A scrollable row of selectable prompt chips that seed the composer.
Suggestions
The Suggestions primitive renders a horizontal, scrollable rail of prompt chips. Each Suggestion invokes a callback with its text — wire it to your composer to seed the input or send directly.
Preview
Installation
pnpm dlx shadcn@latest add @localmode/ui/conversation/suggestionsnpx shadcn@latest add @localmode/ui/conversation/suggestionsyarn dlx shadcn@latest add @localmode/ui/conversation/suggestionsbunx --bun shadcn@latest add @localmode/ui/conversation/suggestionsDependencies
- None — pure presentational component
clsx+tailwind-merge— via the sharedcn()util (installed automatically as a registry dependency)
Files installed
suggestions.tsx—Suggestions+Suggestionlib/utils.ts— thecn()helper (if not already present)
Props
Suggestion
Prop
Type
Examples
Seed the input
import { Suggestion, Suggestions } from '@/components/suggestions';
<Suggestions>
{prompts.map((p) => (
<Suggestion key={p} suggestion={p} onSelect={setInput} />
))}
</Suggestions>Customization
Chips are buttons under the hood, so size/variant flow through. The rail hides its scrollbar by default; remove those utilities to show it.
These primitives are presentational and hook-driven: they render props and emit callbacks, holding only local view state. The orchestration state lives in your app. Every surface uses shadcn/ui CSS-variable utilities, so it inherits your theme — restyle the copied file freely.