0.1.8 • Published 1 year ago

react-chat-engine-pretty v0.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

  • Using npm: npm install react-chat-engine-pretty --save
  • Using Yarn: yarn add react-chat-engine-pretty

Quick Start

Add serverless chat to your React app in 3 minutes.

  1. Register then create a project and user at chatengine.io

  2. Collect the Project ID / username / User Secret

  3. Install yarn add react-chat-engine

  4. Import and declare <PrettyChatWindow />

  5. 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 project
  • username (String REQUIRED) - username of a person in this project
  • secret (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
0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago