- use
classesas propname - see example and component example -
button.tsxto learn more
- Compile your component
npm run rollup - If no error, then follow:
- Run
npm run dev - Goto
example/src/App.jsand 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-kitin your componentimport ChatUIKit from 'chat-ui-kit' -
use your component
npm i ..import {Button} from "chat-ui-kit"- use
buttoncomponent