jarvis-kb-react
v0.0.3
Published
<h1 align="center">Jarvis KB React</h1>
Downloads
13
Readme
Installing
Package manager
Using npm:
$ npm install jarvis-kb-react
Using yarn:
$ yarn add jarvis-kb-react
Once the package is installed, you can import the library using import
:
import { KnowledgeBase, MessageInput, MessageList, Thread, ThreadChat, ThreadList } from 'jarvis-kb-react';
Example
import { JarvisKBOptions, JarvisKB } from 'jarvis-kb-node';
import { Header, KnowledgeBase, MessageInput, MessageList, Thread, ThreadChat, ThreadList } from 'jarvis-kb-react';
function App() {
const kbOptions: JarvisKBOptions = {
publicKey: "your-public-key",
secretKey: "your-secret-key",
}
const jarvisKB = new JarvisKB(kbOptions);
return (
<>
<KnowledgeBase client = {jarvisKB} >
<Thread>
<ThreadList/>
<ThreadChat>
<Header/>
<MessageList/>
<MessageInput/>
</ThreadChat>
</Thread>
</KnowledgeBase>
</>
);
}
export default App;