# DocsGPT react widget
This widget will allow you to embed a DocsGPT assistant in your React app.
## Installation
```bash
npm install docsgpt
```
## Usage
### React
```javascript
import { DocsGPTWidget } from "docsgpt";
const App = () => {
return ;
};
```
To link the widget to your api and your documents you can pass parameters to the component.
```javascript
import { DocsGPTWidget } from "docsgpt";
const App = () => {
return ;
};
```
### Html
```html
DocsGPT Widget
```
To link the widget to your api and your documents you can pass parameters to the **renderDocsGPTWidget('div id', { parameters })**.
```html
DocsGPT Widget
```
## Our github
[DocsGPT](https://github.com/arc53/DocsGPT)
You can find the source code in the extensions/react-widget folder.