Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 709 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 709 Bytes

The one and only chat widget for open

How to Get Started

1. Installation

pnpm add @opencx/widget

2. Imports

import { Widget, WidgetRoot } from "@opencx/widget/basic";

3. Usage

<WidgetRoot options={options}>
  <Widget />
</WidgetRoot>

WidgetRoot is just the data layer for the widget. It is required to be present in the parent component of the widget. You can Pass options to the WidgetRoot component to customize the widget.

I don't want your UI? can I use my own?

Yes, everything in this lib is exported so you can build your own UI on top of it. Check out core and react-lib directories.