Skip to main content

Conversation History

Sidebar component for managing multiple conversation threads with search and delete. Organizes conversations by time period (today, yesterday, last 7 days, etc.) with full CRUD operations support.

Preview

Conversations

Today
Yesterday
Last 7 days
5 conversations

Active Conversation: Project Planning Discussion

Chat interface would go here

Installation

Terminalbash

Usage

Reacttsx

Examples

Full Featured

My Conversations

Today
Yesterday
Last 7 days
5 conversations

Chat content

tsx

Time-based Grouping

Conversations are automatically grouped by time:

  • Today
  • Yesterday
  • Last 7 days
  • Last 30 days
  • Older

Different Sizes

Small (256px)

Conversations

Today
Yesterday
3 conversations

Large (384px)

Conversations

Today
Yesterday
3 conversations
tsx

Floating Variant

Use floating variant for overlays or modals:

Conversations

Today
Yesterday
3 conversations
tsx

With Search

Search filters conversations by title and preview text:

Conversations

Today
Yesterday
Last 7 days
5 conversations

Conversation Interface

TypeScripttypescript

Props

NameTypeDefaultDescription
conversations
Required
Conversation[]List of conversations
activeId
stringCurrently active conversation ID
onSelect
(id: string) => voidCallback when conversation is selected
onCreate
() => voidCallback when new conversation is created
onRename
(id: string, newTitle: string) => voidCallback when conversation is renamed
onDelete
(id: string) => voidCallback when conversation is deleted
onShare
(id: string) => voidCallback when conversation is shared
showSearch
booleantrueShow search input
variant
'default' | 'floating''default'Visual style variant
size
'sm' | 'default' | 'lg''default'Width size of the sidebar
isRTL
booleanfalseWhether text direction is RTL
title
stringHeader title
titleAr
stringHeader title in Arabic

Accessibility

Screen Reader

All interactive elements have proper labels. Action menu items include icon descriptions. Empty states provide helpful context.

Keyboard Navigation

  • Tab: Navigate through conversations and buttons
  • Enter: Select conversation or activate button
  • / : Navigate list (in scroll area)
  • /: Focus search (when available)

Visual Feedback

Active conversation is highlighted. Hover states on conversations. Action menu appears on hover for better discoverability.

RTL Considerations

The sidebar fully supports RTL layouts. Icons, timestamps, and menu positions all adapt correctly. All text supports Arabic via *Ar props.

LTR (English)

Conversations

Today
Yesterday
3 conversations

RTL (العربية)

المحادثات

اليوم
الأمس
3 conversations

Related Components

Chat Message

Display messages within conversations

Prompt Input

Input for sending messages in conversations

Model Selector

Select AI model per conversation