Last updated
Install the widget from your package registry:
pnpm add @zofai/trading-widget or npm install @zofai/trading-widget or yarn add @zofai/trading-widget
NPM:
Your app must install:
react & react-dom (β₯18)
jotai (β₯2)
@tanstack/react-query (β₯5)
@mysten/dapp-kit-react (β₯1) & @mysten/sui (β₯2)
zo-sdk (β₯0.1)
The widget uses Tailwind-compatible utility classes (e.g. flex, text-white, rounded-lg). Either:
Use Tailwind CSS or UnoCSS in your app so those classes resolve, or
Import the bundled CSS once in your app: import '@zofai/trading-widget/style.css' . This file contains the compiled UnoCSS used by the widget.
Last updated