=======================================
React component wrapper for Freshchat. The oficial documentation can be found here https://developers.freshchat.com/web-sdk/.
- 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.
import { Freshchat } from 'reactjs-freshchat';
import 'reactjs-freshchat/dist/index.css'
//1. Anonymous User
<Freshchat token={'YOUR-TOKEN-HERE'} />
//2. Logged in User
<Freshchat
token={'YOUR-TOKEN-HERE'}
externalId={"john.doe1987"}
firstName={"John"}
lastName={"Doe"}
/>
//3. Labeled chat and styled colors
<Freshchat
token={'YOUR-TOKEN-HERE'}
label="Label"
ic_styles={{
backgroundColor: '#002d85',
color: '#fff'
}}
/>$ npm i reactjs-freshchatKeep it simple. Keep it minimal. Don't put every single feature just because you can. Have fun 🚀!
- Vinicius Teixeira
MIT © ViniciusTei

