A flexible and lightweight EasyDesk chat widget for React apps and websites. Supports both React integration and CDN-based embedding for fast, real-time customer support.
npm install ed-widgetA lightweight, customizable chat widget for React.js applications and websites. Easily integrate real-time customer support via React or embed it directly using a CDN. Perfect for enhancing user engagement and streamlining support.
- Simple JavaScript API for initializing the widget
- Auto-initialization via data-* attributes
- CDN and NPM support
- React-based rendering
- API key-based configuration
---
``bash`
npm install ed-widget
`jsx
import Widget from 'ed-widget';
`
---
Add the following script to your HTML page:
`html`
id="ed-widget"
src="https://cdn.jsdelivr.net/npm/ed-widget/dist/ed-widget.js"
ed-key="YOUR_API_KEY"
>
- A div with the ID ed-widget will be created (if not already present).ed-key` attribute.
- The widget will be auto-initialized using the API key provided in the
---
Make sure you have React and ReactDOM available in your environment when developing locally.
MIT