Overview
Build your own chat UI with React components in a few minutes. Chat UI Kit from MinChat is an open source UI toolkit for developing web chat applications.
React Chat UI makes chat UI development faster
View Live Demo If you would like to see the React chat UI in action, you can visit the live demo. This demo allows you to test out the various features of the react chat components and see how it can be integrated into a real-world application. We encourage you to give it a try and see for yourself the power and flexibility of our chat UI.
Component Library
Using npm.
npm install @minchat/react-chat-ui
Using yarn.
yarn add @minchat/react-chat-ui
import { MainContainer } from "@minchat/react-chat-ui"
<div style={{ height: '100vh' }}> <MainContainer
{...args}
inbox={{
onScrollToBottom: () => { },
themeColor: "#6ea9d7",
conversations: [{
id: "1",
title: "Epic gamers",
avatar: "https://images.pexels.com/photos/1704488/pexels-photo-1704488.jpeg?cs=srgb&dl=pexels-suliman-sallehi-1704488.jpg&fm=jpg"
, lastMessage: {
seen: false,
text: "Hello everbody"
,
user: {
id: "martha_stewart",
name: "Daniel",
avatar: "https://media.sproutsocial.com/uploads/2022/06/profile-picture.jpeg"
}
}
}, {
id: "2",
title: "Devops",
lastMessage: {
seen: true,
text: "How do you enable an actuator on a servo motor of a hardware and design laboratory experiment in the city,an actuator on a servo motor of a hardware and design laboratory experiment in the city",
user: {
avatar: "https://fsdfsdfsdfs",
id: "daniel",
name: "Daniel",
}
}
}],
loading: false,
onConversationClick: () => console.log("onChat click"),
selectedConversationId: "1"
}}
selectedConversation={
{
themeColor: "#6ea9d7",
messages: [[
{
"user": {
"id": "danny_1",
"name": "Daniel Georgetown",
avatar: "https://media.sproutsocial.com/uploads/2022/06/profile-picture.jpeg"
},
"text": "first message"
},
{
"user": {
"id": "mark",
"name": "Markus"
},
"text": "hello"
},],
header: "Sandra Bullock",
currentUserId: "danny_1",
onSendMessage: () => console.log("onSendMessage"),
onBack: () => { }
}
}
/>
</div>
</div>
prop | type | description |
---|---|---|
mobileView | boolean | determines whether the view is permanently in mobile view. defaults to false |
inbox | ConversationContainerProps | props for conversations that appear on the conversation list |
selectedConversation | MessageContainerProps | props for the conversation that is selected |
This library is written in Typescript, by extension can be used in Javascript projects as well.
Now if you made your awesome chat UI and you love this library, please ⭐ this repository!
Unleash the power of seamless chat functionality with MinChat's React Chat API! Say goodbye to backend worries and hello to effortless integration. Get started today and save months of development time. Build a full-fledged React chat application in just minutes, not months!
Last modified 4mo ago