@epam/statgpt-conversation-list
v0.8.0
Published
This is StatGpt portals library, provides reusable React components and utilities for displaying and managing lists of conversations in StatGPT Portals projects. It handles rendering, selection, and interaction with conversation items.
Readme
Conversation List
This is StatGpt portals library, provides reusable React components and utilities for displaying and managing lists of conversations in StatGPT Portals projects. It handles rendering, selection, and interaction with conversation items.
Table of Contents
Features
- UI components for rendering conversation lists and items
- Support for highlighting search queries within conversation names
- Action menus for conversation management (delete, share, etc.)
- Customizable styles and icons
- Smooth scrolling to selected conversation
Installation
npm install @epam/statgpt-conversation-listUsage
import { ConversationList } from '@epam/statgpt-conversation-list';
// Example usage
<ConversationList
selectedConversationId={selectedId}
conversations={conversations}
handleConversationClick={handleConversationSelect}
handleSelectedConversationRemove={handleSelectedConversationRemove}
conversationStyles={conversationStyles}
actions={actions}
locale={locale}
...
/>Styling & Customization
You can customize the appearance of the conversation list and items using the conversationStyles prop. This allows you to override icons & default styles with your own CSS styles.
Localization
The component supports localization of used chat-model through the locale prop. You can also provide translations for various UI elements using the titles prop.
Contributing
We welcome contributions! Please see our Contributing Guide for details on:
- Code style guidelines
- Testing requirements
- Pull request process
Security
If you discover a security vulnerability, please refer to our Security Policy.
