React components to use Dialect's web3 notifications.
npm:
npm install @dialectlabs/react @dialectlabs/react-ui --save
yarn:
yarn add @dialectlabs/react @dialectlabs/react-ui
This repo utilizes Yarn Workspaces. Publishable packages are located under packages directory. examples directory contains projects to demonstrate how can Dialect be used.
For development, you implement necessary component inside the packages and use them in examples to visualize them.
To get started, launch example's next dev server:
yarn # in root dir
cd examples/basic
yarn dev
Now you have a hot reload of the packages in the workspace.
Store original svgs in Icon/source/, then run inside Icon directory to convert:
npx @svgr/cli --typescript --out-dir . -- source
Import Icon as a React Component from Icon, e.g. (import {BackArrow} from '/Icon/'). See SVGR Command Line guide for more details.
TBD
packages and examples directories, becomes part of the workspaces. Referencing other workspace package can be done by using npm project's name (in package.json)package.json MAY contain references to child npm projects to simplify ci commands: e.g. in root package.json - yarn build:react-ui which would call the packages/dialect-react-ui's build command.$ claude mcp add react \
-- python -m otcore.mcp_server <graph>