🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

reactjs-freshchat

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reactjs-freshchat

A Reactjs component wrapper for Freshchat web-sdk api.

1.2.1
Source
npm
Version published
Weekly downloads
447
6.43%
Maintainers
1
Weekly downloads
 
Created
Source

ReactJS Freshchat

=======================================

React component wrapper for Freshchat. The oficial documentation can be found here https://developers.freshchat.com/web-sdk/.

List of features

  • 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.

Live examples

  • Simple icon chat
    Image of simple chat
  • Labeled icon chat
    Image of labeled chat

Code Demo

  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'
        }}
      />

Download & Installation

$ npm i reactjs-freshchat

Contributing

Keep it simple. Keep it minimal. Don't put every single feature just because you can. Have fun 🚀!

Authors or Acknowledgments

  • Vinicius Teixeira

License

MIT © ViniciusTei

Keywords

freshchat

FAQs

Package last updated on 30 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts