Skip to content

Bytedesk/bytedesk-react

Repository files navigation

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;

get chat url

Example

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

对话SDK

Project Description Forks Stars
iOS-swift iOS swift GitHub forks GitHub Repo stars
Android Android GitHub forks GitHub Repo stars
Flutter Flutter GitHub forks GitHub Repo stars
React React GitHub forks GitHub Repo stars
UniApp Uniapp GitHub forks GitHub Repo stars
Web/Vue Web/Vue GitHub forks GitHub Repo stars

客户端

技术栈

联系