Package Exports
- @chatscope/chat-ui-kit-react
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@chatscope/chat-ui-kit-react) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Chat UI Kit React
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...?
Our kit is for you! See all features.
Chat UI Kit makes chat UI development at warp speed
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.
Show your support
Now if you made your awesome chat UI and you love this library, please ⭐ this repository!
Community and support
- Twitting via @chatscope
- Chatting at Discord
- Facebooking at Facebook