Documentation

Everything you need to build beautiful chat interfaces with React.

Installation

npm install chat-ui-react

Or with yarn:

yarn add chat-ui-react

Quick Start

import { ChatContainer, Message, ChatInput } from 'chat-ui-react'

function App() {
  const [messages, setMessages] = useState([])

  const handleSend = (message) => {
    setMessages([...messages, { 
      id: Date.now(), 
      text: message, 
      sender: 'user' 
    }])
  }

  return (
    <ChatContainer>
      {messages.map(msg => (
        <Message key={msg.id} {...msg} />
      ))}
      <ChatInput onSend={handleSend} />
    </ChatContainer>
  )
}

Features

Easy Integration
Drop-in components that work with any React application.
High Performance
Optimized for smooth scrolling and real-time updates.
Customizable
Fully customizable themes and styling options.
TypeScript
Built with TypeScript for better developer experience.