About Chat Composer
Chat Composer is a rich text editor built on Lexical that allows users to compose chat messages. It supports features like auto-linking, placeholder text, and custom styling.Components
The Chat Composer package includes:- ChatComposer - The main rich text editor
- ChatComposerContainer - Wrapper container with action buttons
- ChatComposerActionGroup - Group of action buttons
- ChatComposerActionRow - Row for action buttons
- ChatComposerAttachmentCard - Display file attachments
- ChatComposerAttachmentGroup - Group of attachments
- ChatComposerAttachmentLink - Link to attachment
- ChatComposerAttachmentDescription - Attachment description
Installation
Usage
Props
ChatComposer
ChatComposerContainer
ChatComposerActionGroup
Lexical Editor Access
You can access the underlying Lexical editor instance for advanced operations:Accessibility
- Uses semantic HTML with proper ARIA attributes
- Supports keyboard navigation
- Focus management with visual focus indicators
- Screen reader announcements for state changes
- Requires
ariaLabelfor accessible labeling
Related components
- Chat Log - For displaying sent messages
- AI Chat Log - For AI conversations