bytedesk-react
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

bytedesk-react

NPM version NPM downloads

bytedesk.com react lib for customer service chat widget

Usage

npm install bytedesk-react --save
# or
yarn add bytedesk-react

Options

import { ChatFloat } from "bytedesk-react";
// 
<ChatFloat
    chatUrl="http://localhost:9006/chat?t=1&sid=default_wg_uid&"
    //buttonPosition: 'right', // botton position:left or right
    //buttonBackgroundColor: 'blue', // button background color
    //iframeMargins: { right: 20, bottom: 20, left: 20 }, // iframe margins
    //buttonMargins: { right: 20, bottom: 20, left: 20 }, // button margins
    //showButton: true, // show button or not
    //showIframe: true // show iframe or not
/>
// params:
chatUrl: chat url;

Example

custom button color custom button left custom button margin custom iframe margin

More

LICENSE

MIT

Package Sidebar

Install

npm i bytedesk-react

Weekly Downloads

4

Version

0.0.5

License

MIT

Unpacked Size

23.4 kB

Total Files

9

Last publish

Collaborators

  • jackning