@cmnd-ai/chatbot-react 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Readme.md +5 -17
- package/package.json +1 -1
package/Readme.md
CHANGED
|
@@ -1,37 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
sidebar_position: 1
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Documentation
|
|
6
|
-
|
|
7
|
-
## cmnd-chat-bot-package
|
|
1
|
+
## @cmnd-ai/chatbot-react
|
|
8
2
|
|
|
9
3
|
This npm package provides a customizable chatbot component for use in web applications, designed specifically for Node.js environments.
|
|
10
4
|
|
|
11
|
-
### Requirements
|
|
12
|
-
|
|
13
|
-
Before using this package, ensure you have the following prerequisites installed on your computer:
|
|
14
|
-
|
|
15
|
-
- Node.js
|
|
16
|
-
|
|
17
5
|
### Installation
|
|
18
6
|
|
|
19
|
-
You can install the
|
|
7
|
+
You can install the `@cmnd-ai/chatbot-react` from npm using npm or yarn:
|
|
20
8
|
|
|
21
9
|
```bash
|
|
22
|
-
npm install cmnd-
|
|
10
|
+
npm install @cmnd-ai/chatbot-react
|
|
23
11
|
```
|
|
24
12
|
|
|
25
13
|
### With yarn
|
|
26
14
|
|
|
27
15
|
```bash
|
|
28
|
-
yarn add cmnd-
|
|
16
|
+
yarn add @cmnd-ai/chatbot-react
|
|
29
17
|
```
|
|
30
18
|
|
|
31
19
|
### Example implementation
|
|
32
20
|
|
|
33
21
|
```javascript
|
|
34
|
-
import { ChatProvider, CmndChatBot } from "
|
|
22
|
+
import { ChatProvider, CmndChatBot } from "@cmnd-ai/chatbot-react";
|
|
35
23
|
import { useEffect } from "react";
|
|
36
24
|
|
|
37
25
|
const components = {
|