You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DocsGPT/extensions/react-widget
ManishMadan2882 8073924056 padding improved at the edges 7 months ago
..
public react-widget 1 year ago
src padding improved at the edges 7 months ago
.eslintrc.cjs inititated shadcn 7 months ago
.gitignore inititated shadcn 7 months ago
README.md docs: fix grammar issues 11 months ago
components.json inititated shadcn 7 months ago
index.html inititated shadcn 7 months ago
index.ts react-widget 1 year ago
package-lock.json adding responsive markdown response, error alert 7 months ago
package.json adding responsive markdown response, error alert 7 months ago
postcss.config.js inititated shadcn 7 months ago
tailwind.config.js UI enhancement, scroll fix 7 months ago
tsconfig.json inititated shadcn 7 months ago
tsconfig.node.json inititated shadcn 7 months ago
vite.config.ts inititated shadcn 7 months ago

README.md

DocsGPT react widget

This widget will allow you to embed a DocsGPT assistant in your React app.

Installation

npm install  docsgpt

Usage

    import { DocsGPTWidget } from "docsgpt";
    import "docsgpt/dist/style.css";

    const App = () => {
      return <DocsGPTWidget />;
    };

To link the widget to your api and your documents you can pass parameters to the component.

    import { DocsGPTWidget } from "docsgpt";
    import "docsgpt/dist/style.css";

    const App = () => {
      return <DocsGPTWidget apiHost="http://localhost:7001" selectDocs='default' apiKey=''/>;
    };

Our github

DocsGPT

You can find the source code in the extensions/react-widget folder.