Suggested Prompts
Real questions a new chat can offer, each with a line on what the answer will contain. Prompts that carry a category get tabs, `limit` shows a few at a time with Shuffle for the rest, and the whole set is one Tab stop moved through with the arrow keys.
Ready for AI tools one file typed props installs by name prompt included
Installation
How you get it
Paste this into Claude Code, Cursor, Codex or any coding agent. It installs the file and uses it as it is, instead of writing a new one.
Use Layro's Suggested Prompts for this.
Install it: npx shadcn@latest add @layro/suggested-prompts
Import it from @/components/ui/suggested-prompts.
Do not rewrite or restyle it. Pass my data through its props
and keep its built-in states.For the full brief with every prop and the mistakes assistants usually make, use Copy prompt above. Pro components install through the @layro registry with your CLI token: see the Namespaced tab.
API
“Copy prompt” above puts a full brief on your clipboard — install command, dependencies, props, and the mistakes an assistant usually makes with this component.
Props
Read from the component’s own TypeScript interface when the site is built, so this table cannot drift from the file you install.
| Prop | Type | Notes |
|---|---|---|
promptsrequired | SuggestedPrompt[] | — |
onSelect | (prompt: SuggestedPrompt) => void | — |
variant | "cards" | "chips" | "list" | Default `cards`. |
columns | 1 | 2 | 3 | Columns for `cards` once the component is 440px wide. Default 2. |
categories | boolean | Show tabs when prompts carry a category. Default true. |
limit | number | Show this many at a time, with "More ideas" for the rest. |
heading | React.ReactNode | false | The small heading. Pass `false` to hide it. |
disabled | boolean | — |
Dependencies
npm packages
clsxframer-motionlucide-reacttailwind-mergeLayro foundations, installed alongside it
layro-themebuttontabsLifetime access
Every component, and everything we ship next.
- All 112 components, source included
- The template, and everything released after you buy
- shadcn CLI or download — React 18/19, Tailwind v4
- One payment. No subscription.
More in AI Chat
All AI Chat componentsConversation History
PaidThe sidebar of past chats: grouped by day, searchable, rename, pin and delete in place.
Included with lifetime access
Memory Manager
PaidWhat an assistant remembers about someone, and the controls to change it.
Included with lifetime access
AI Chat
BlockFreeA whole chat window: greeting, streaming answers, stop, retry and regenerate.
Chatbot
BlockFreeOne chat in four places: a floating widget, an embedded panel, a copilot sidebar or a full page.
Chat Message
FreeOne turn in a conversation, for the person or the assistant, with sources and attachments.
Streaming Response
FreeAn answer arriving word by word that looks finished at every moment in between.