A React ChatBot Widget
npm install react-aichatbot-widgetbash
npm install react-aichatbot-widget
`
> axios is included with the widget and does not need to be installed separately.
$3
`bash
npm install react react-dom tailwindcss lucide-react
`
> Ensure 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
`jsx
import React from "react";
import ChatBotWidget from "react-aichatbot-widget";
function App() {
return (
{/add a namespace for chatbot and chatbot url/}
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=""
/>
);
}
export default App;
`
---
Notes
* axios` is bundled; no extra installation required.