chat-engine-pretty
v0.1.8
Published
<p align="center" > <p align="center" > <a href="https://chatengine.io/"> <img alt="react-chat-engine-pretty" style='max-height: 333px; max-width: 100%;' src="https://chat-
Downloads
3
Readme
Chat Engine ✨Pretty✨
Chat Engine is a devevloper friendly and ✨pretty✨ Chat UI Kit.
Setup a free plan at chatengine.io
Features
- Typescript (since 2.0.0)
- Send messages
- Send images / files
- DMs and Group Chats
Installation
Quick Start
Add serverless chat to your React app in 3 minutes.
Register then create a project and user at chatengine.io
Collect the Project ID / username / User Secret
Install
yarn add react-chat-engine
Import and declare
<PrettyChatWindow />
You're done!
Example implementation ⬇️
import React from 'react';
import { PrettyChatWindow } from 'react-chat-engine-pretty';
export function App() {
return (
<PrettyChatWindow
projectId="b75e5bd5-cd84-404c-b820-06feff8c98c0"
username="john_smith"
secret="pass1234"
style={{ height: '100vh' }}
/>
);
}
Props
projectId
(String REQUIRED) - Public API key for your chatengine.io projectusername
(String REQUIRED) - username of a person in this projectsecret
(String REQUIRED) - Set a secret for this person and use it to authenticate.style
(String OPTIONAL) - CSS used to customize the size of your Chat Window