ConversationList
Sidebar list of chats or agent runs, grouped by date, with live status.
Code
import * as React from 'react';
import { ConversationList } from '@fruit-labs/design';
export default function Demo() {
return (
<div
style={{
maxWidth: 280,
background: 'var(--surface-2)',
padding: 12,
borderRadius: 20,
}}
>
<ConversationList
groups={[
{
label: 'Today',
items: [
{
title: 'Refactor billing module',
active: true,
status: 'running',
},
{
title: 'Q3 report summary',
status: 'done',
},
],
},
{
label: 'Yesterday',
items: [
{
title: 'Onboarding email drafts',
},
{
title: 'Fix flaky tests',
status: 'error',
},
],
},
]}
/>
</div>
);
}Install
From npm:
npm install @fruit-labs/design
import { ConversationList } from '@fruit-labs/design';Or copy the TypeScript source into your project:
npx shadcn@latest add https://design.fruitlabs.online/r/conversation-list.jsonGuidelines
- Groups: Today, Yesterday, Previous 7 days. Titles are auto-summaries.
Props
| Prop | Type | Required |
|---|---|---|
groups | Array<{ label: string; items: Array<{ title: string; href?: string; active?: boolean; status?: string; onClick?: () => void }> }> | Yes |
label | string | No |
className | string | No |