0.1.3 • Published 9 months ago

omnimind-react v0.1.3

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

Omnimind-React

npm version

Easily integrate Omnimind widgets into your React app with the omnimind-react package.

Installation

You can install the omnimind-react package using npm:

npm install omnimind-react

Usage

  1. First, make sure you have an account with Omnimind and have obtained the necessary credentials.

  2. Import the necessary components from the omnimind-react package into your React application:

import { OmnimindWidget } from 'omnimind-react';
  1. Use the OmnimindWidget component in your JSX to display the desired Omnimind widget. Pass the required props, such as widgetId and projectId
import { OmnindWidget } from "omnimind-react";

function App() {
  return (
    <div className="App">
        <OmnimindWidget
            widgetType="chat"
            widgetId="your-widget-id" 
            projectId="your-project-id"
        />
    </div>
  );
}

export default App;

Props

PropTypeDescription
widgetTypeWidgetTypesThe type of the Omnimind widget.
widgetIdstringThe ID of the Omnimind widget to display.
projectIdstringThe ID of the Omnimind project associated.

Widget types

The widgetType prop accepts the following values:

  • 'chat': Display a chat widget.
  • 'search': Display a search widget.
  • 'popup-chat': Display a popup chat widget.
  • 'doc-search': Display a document search widget.
  • 'explain': Display an explanation widget.
  • 'summarize': Display a summarization widget.
0.1.3

9 months ago

0.1.2

9 months ago

0.1.1

9 months ago

0.1.0

9 months ago

0.0.9

9 months ago

0.0.8

9 months ago

0.0.7

9 months ago

0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago