MCPcopy Index your code
hub / github.com/chatscope/chat-ui-kit-react

github.com/chatscope/chat-ui-kit-react @v2.1.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.1.1 ↗ · + Follow
181 symbols 463 edges 108 files 0 documented · 0% 6 cross-repo links updated 14mo agov2.1.1 · 2025-05-15★ 1,75857 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Chat UI Kit React

Actions Status npm version code style: prettier semantic-release Storybook

Build your own chat UI with React components in a few minutes.
The Chat UI Kit from chatscope is an open source UI toolkit for developing web chat applications.

Tired of struggling with sticky scrollbars, contenteditable, responsiveness, css hacks?
This kit is for you! See all features.

Chat UI Kit brings you chat UI development at warp speed 🚀

Demo

Demos index: https://chatscope.io/demo.

Install

Component library

Using yarn:

yarn add @chatscope/chat-ui-kit-react

Using npm:

npm install @chatscope/chat-ui-kit-react

Styles

Using yarn:

yarn add @chatscope/chat-ui-kit-styles

Using npm:

npm install @chatscope/chat-ui-kit-styles

Usage

ESM

import styles from "@chatscope/chat-ui-kit-styles/dist/default/styles.min.css";
import {
  MainContainer,
  ChatContainer,
  MessageList,
  Message,
  MessageInput,
} from "@chatscope/chat-ui-kit-react";




  <MainContainer>
    <ChatContainer>
      <MessageList>
        <Message
          model={{
            message: "Hello my friend",
            sentTime: "just now",
            sender: "Joe",
          }}
        />
      </MessageList>
      <MessageInput placeholder="Type message here" />
    </ChatContainer>
  </MainContainer>


;

Yeah! Your first chat GUI is ready!

UMD

UMD usage is documented in our Storybook.

Documentation

Check our friendly Storybook.

Typescript

The library is written in Javascript, but Typescript typings are available in the package since version 1.9.3.

See also

@chatscope/use-chat is a React hook for state management in chat applications.
Check it out and see how easy you can do the chat logic yourself.

Show your support

If you've made an awesome chat UI and you love this library, please ⭐ this repository!

Community and support

Website

https://chatscope.io

License

MIT

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 119
Interface 30
Method 24
Class 8

Languages

TypeScript100%

Modules by API surface

src/components/Scroll/perfect-scrollbar.esm.js47 symbols
src/components/Scroll/ReactPerfectScrollbar.jsx12 symbols
src/components/MessageList/MessageList.jsx11 symbols
src/components/MessageInput/MessageInput.jsx11 symbols
src/components/ContentEditable/ContentEditable.jsx9 symbols
src/components/Message/Message.d.ts7 symbols
src/components/utils.js5 symbols
src/components/Search/Search.jsx5 symbols
src/components/Conversation/ConversationContent.jsx3 symbols
src/components/Conversation/Conversation.jsx3 symbols
src/components/Conversation/Conversation.d.ts3 symbols
src/components/Buttons/Buttons.d.ts3 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

@babel/cli7.10.5 · 1×
@babel/core7.11.4 · 1×
@babel/plugin-proposal-class-properties7.10.4 · 1×
@babel/preset-env7.11.5 · 1×
@babel/preset-react7.10.4 · 1×
@chatscope/chat-ui-kit-styles1.2.0 · 1×
@commitlint/cli11.0.0 · 1×
@commitlint/config-conventional11.0.0 · 1×
@fortawesome/fontawesome-free6.5.2 · 1×
@fortawesome/fontawesome-svg-core6.5.2 · 1×
@fortawesome/free-solid-svg-icons6.5.2 · 1×
@fortawesome/react-fontawesome0.2.2 · 1×

For agents

$ claude mcp add chat-ui-kit-react \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page