@ronak27/superwise-chatbot-package
v1.0.10
Published
A reusable React chatbot component package
Readme
My Chatbot Package
A customizable React chatbot component that can be embedded in any React project. Includes typewriter effects, PDF export, and persistent local chat history.
Features
- Fully React-based, lightweight, and responsive
- Minimized & maximized states
- Typewriter effect for AI messages
- Input validation and character count
- Persistent chat history (localStorage)
- Download chat conversation as PDF
- Customizable primary color and styles
- Ready to publish as an npm package
Installation
Install via npm:
npm install @ronak27/superwise-chatbot-packageUsage
Styles are auto-loaded by the package (no manual CSS import needed). Use the component:
import { Chatbot } from "@ronak27/superwise-chatbot-package";
function App() {
return (
<div>
<h1>Demo Chatbot</h1>
<Chatbot
title="Superwise Expert Agent"
agentId="AGENT_ID_HERE"
discoveryAgentId="DISCOVERY_AGENT_ID_HERE"
primaryColor="#000000"
/>
</div>
);
}
ReactDOM.createRoot(document.getElementById("root")).render(<App />);