react-aichatbot-widget
v2.0.12
Published
A React ChatBot Widget
Readme
React AI Chatbot Widget
A React chatbot widget using React, Axios, and Lucide Icons.
Installation
Step 1: Install the Widget
npm install react-aichatbot-widget
axiosis included with the widget and does not need to be installed separately.
Step 2: Install Peer Dependencies
npm install react react-dom tailwindcss lucide-reactEnsure versions match your project.
| Package | Version | | |
| -------------- | -------- | - | ------- |
| react | ^18.0.0 | | ^19.0.0 |
| react-dom | ^18.0.0 | | ^19.0.0 |
| tailwindcss | ^4.1.17 | | |
| lucide-react | ^0.554.0 | | |
| axios | ^1.6.0 | | |
Usage Example
import React from "react";
import ChatBotWidget from "react-aichatbot-widget";
function App() {
return (
<div className="App">
{/*add a namespace for chatbot and chatbot url*/}
<ChatBotWidget
pineconeNamespace=''
primaryColor="" // hex color code
secondaryColor="" // hex color code
fontColor="" // hex color code
backgroundColor="" // hex color code
position="" // left or right
name="" // any name
subTitle="" // any subtitle
welcomeText="" // any welcome text
aiInitialMessage=""
/>
</div>
);
}
export default App;Notes
axiosis bundled; no extra installation required.- TailwindCSS is required if you want to customize styles.
- React and ReactDOM must match the versions listed above.
