A Reactjs component wrapper for Freshchat web-sdk api.
npm install reactjs-freshchat!GitHub Workflow Status
!GitHub Workflow Status

React component wrapper for Freshchat. The oficial documentation can be found here
*
* Create a chat with anonymous user
* Create a chat with Logged in user
* Custom labeled chat
* Add a label to your chat icon.
* The ic_styles property can only be set with this option.
* Simple icon chat 
* Labeled icon chat 
``tsx
import { Freshchat } from 'reactjs-freshchat';
import 'reactjs-freshchat/dist/index.css'
//1. Anonymous User
//2. Logged in User
externalId={"john.doe1987"}
firstName={"John"}
lastName={"Doe"}
/>
//3. Labeled chat and styled colors
label="Label"
ic_styles={{
backgroundColor: '#002d85',
color: '#fff'
}}
/>
`
`shell `
$ npm i reactjs-freshchat
Keep it simple. Keep it minimal. Don't put every single feature just because you can. Have fun 🚀!
Download the source code. Then, you need to install the dependencies using
`shell`
yarn
or
npm install
Then run the following command to run the component `yarn start` or `npm start ``.
Then navigate to the example folder and run the start script to run the example project and see your changes.
* Vinicius Teixeira
MIT © ViniciusTei