Conversation History
Chats grouped the way people remember them: Pinned, Today, Yesterday, the last week. Search marks the words that matched. Rename happens on the row, a pinned row travels up to Pinned so the eye can follow it, and delete asks on the row itself.
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 Conversation History for this.
Install it: npx shadcn@latest add @layro/conversation-history
Import it from @/components/ui/conversation-history.
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 |
|---|---|---|
conversationsrequired | Conversation[] | — |
activeId | string | — |
onSelect | (id: string) => void | — |
onNew | () => void | Leave it out to hide the New conversation button. |
onRename | (id: string, title: string) => void | Leave any of these three out to remove it from the row's menu. |
onPin | (id: string, pinned: boolean) => void | — |
onDelete | (id: string) => void | — |
search | boolean | The search box. Default true. |
loading | boolean | Skeleton rows while the list is fetched. |
now | Date | "Today" is measured from here. Default: now. |
title | React.ReactNode | The heading. Default "Chats". |
Dependencies
npm packages
clsxframer-motionlucide-reacttailwind-mergeLayro foundations, installed alongside it
layro-themebuttondropdown-menuinputstateLifetime 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 componentsMemory 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.
Thinking State
FreeThe wait before the first word: what it is doing, for how long, and the trail so far.