Chat Empty State
A greeting, up to three things the assistant can reach, and one-click starter questions, arriving in that order so the eye lands on the greeting first. Put Suggested Prompts inside it for categories and descriptions.
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 Chat Empty State for this.
Install it: npx shadcn@latest add https://layropro.com/r/chat-empty-state
Import it from @/components/ui/chat-empty-state.
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.
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 |
|---|---|---|
mark | React.ReactNode | Replaces the default mark: your product's logo, about 48px. |
glow | boolean | The soft glow behind the mark. Default true. |
titlerequired | React.ReactNode | The greeting. A string is revealed word by word. |
description | React.ReactNode | — |
capabilities | ChatCapability[] | Up to four things the assistant can do or reach. |
starters | Array<string | ChatStarter> | One-click questions: strings for chips, objects for cards. |
onStarter | (text: string) => void | Called with the starter's `prompt`, or its label. |
children | React.ReactNode | Shown in place of `starters`. |
footer | React.ReactNode | A quiet last line: "Answers can be wrong. Check the sources." |
align | "center" | "start" | Default `center`. |
Dependencies
npm packages
clsxframer-motionlucide-reacttailwind-mergeLayro foundations, installed alongside it
layro-themebuttonLifetime 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 componentsPrompt Composer
PaidThe full input: attach files, pick a model, slash commands and @mentions.
Included with lifetime access
Suggested Prompts
PaidStarter questions as cards, chips or a list, with categories and a shuffle.
Included with lifetime access
Conversation 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.