- use
classes
as propname - see example and component example -
button.tsx
to learn more
- Compile your component
npm run rollup
- If no error, then follow:
- Run
npm run dev
- Goto
example/src/App.js
and import component and add respective props.import ChatUIKit from 'chat-ui-kit'
- Test your components
- Run
-
Install dependencies in your own reactJS create-react-app
npm install path_to_chat-ui-kit
-
import
chat-ui-kit
in your componentimport ChatUIKit from 'chat-ui-kit'
-
use your component
npm i ..
import {Button} from "chat-ui-kit"
- use
button
component