@papercups-io/chat-widget
Papercups chat widget
Install
npm install --save @papercups-io/chat-widget
Usage
First, sign up at https://www.papercups.io/register to get your account token.
This is what you will use to pass in as the accountId
prop below:
import React from 'react';
import ChatWidget from '@papercups-io/chat-widget';
import '@papercups-io/chat-widget/dist/index.css';
const ExamplePage = () => {
return (
<>
{/*
Put <ChatWidget /> at the bottom of whatever pages you would
like to render the widget on, or in your root/router component
if you would like it to render on every page
*/}
<ChatWidget accountId='xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx' />;
</>
);
};
License
MIT © reichert621