/bytedesk-react

bytedesk chat react sdk

Primary LanguageTypeScriptMIT LicenseMIT

bytedesk-react

NPM version NPM downloads

bytedesk.com react lib for customer service chat widget

Language

Usage

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

Options

import { ChatFloat } from "bytedesk-react";
// 
<ChatFloat
    chatUrl="https://kf.weiyuai.cn/chat?org=df_org_uid&t=1&sid=df_wg_uid&"
    //buttonPosition: 'right', // botton position:left or right
    //buttonBackgroundColor: 'blue', // button background color
    //iframeWidth: 400,
    //iframeHeight: 600,
    //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 custom iframe width

More

LICENSE

MIT