UNPKG

general-assistant

Version:

General Assistant components

77 lines (58 loc) 1.45 kB
[![npm](https://img.shields.io/npm/dt/general-assistant.svg?label=npm-install&style=flat)]() [![Github pre-)release](https://img.shields.io/github/release-pre/Detaysoft/general-assistant.svg?style=flat)]() # general-assistant ## Reactjs chat elements ## **[Full Documentation](https://detaysoft.github.io/docs-general-assistant/)** todo 用实际的文档地址替代 ## Install ``` npm install general-assistant --save ``` ### Imports ```javascript // RCE CSS import 'general-assistant/dist/main.css' // AssistantAi component import { AssistantAi } from 'general-assistant' ``` ## Components 1. [AssistantAi](#assistantai-component) ```javascript import { AssistantAi } from 'general-assistant'; <AssistantAi CustomConfig={CustomConfig} onLoad /> ``` #### AssistantAi props | prop | default | type | description | | ---------------- | ------- | ---------- | ------------------------------------------------------ | | CustomConfig | none | object | Custom Config | | onLoad | none | function | call on AssistantAi component loaded | ### dev #### install ``` npm i or yarn ``` #### dev ``` npm run dev-server or yarn dev-server ``` #### build ``` npm run build or yarn build ``` #### prepare ``` npm run prepare or yarn prepare ``` #### publish(need auth) ``` npm publish ```