Code Monkey home page Code Monkey logo

reactjs-freshchat's Introduction

📁 Repository archived due to lack of time to address issues and continue project improvement

This repository has been archived due to time constraints that prevent me from effectively responding to pending issues and further developing this project. Thank you for your understanding and interest in this project!

ReactJS Freshchat

GitHub Workflow Status GitHub Workflow Status NPM npm

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

simple chat

  • Labeled icon chat

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 🚀!

Download the source code. Then, you need to install the dependencies using

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.

Authors or Acknowledgments

  • Vinicius Teixeira

License

MIT © ViniciusTei

reactjs-freshchat's People

Contributors

viniciustei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

reactjs-freshchat's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.