Awesome Open Source
Awesome Open Source

Chat UI Kit React

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

Build your own chat UI with React components in few minutes.
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 makes chat UI development at warp speed

Demo

More demo apps will be available soon.

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";

<div style={{ position: "relative", height: "500px" }}>
  <MainContainer>
    <ChatContainer>
      <MessageList>
        <Message
          model={{
            message: "Hello my friend",
            sentTime: "just now",
            sender: "Joe",
          }}
        />
      </MessageList>
      <MessageInput placeholder="Type message here" />
    </ChatContainer>
  </MainContainer>
</div>;

Yeah! Your first chat GUI is ready!

UMD

UMD usage is documented in our Storybook.

Documentation

Check our friendly Storybook.

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

Now if you made your awesome chat UI and you love this library, please ⭐ this repository!

Community and support

Website

https://chatscope.io

License

MIT


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Javascript (1,555,105
Reactjs (72,846
Library (11,386
Frontend (6,637
Ui (5,291
Component (4,505
Chat (3,272
Uikit (1,575
Interface (877
Social (867
Toolkit (824
Messenger (791
Communication (785
Talk (714
User (593
Feed (585
Comments (549
Instant Messaging (241
Conversation (225
Friends (221
Related Projects