pnpm add @opencx/widget
import { Widget, WidgetRoot } from "@opencx/widget/basic";
<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.
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.