bot-package
v1.0.2
Published
bot ...
Downloads
18
Maintainers
Readme
Bot Package
This package is a bot that can be used to control a bot.
Installation
npm install bot-package
Usage
To use the Bot Package in your React application, follow these steps:
- Import the BotButton component:
import React from 'react';
import BotButton from 'bot-package';
function App() {
return (
<div>
<h1>My App</h1>
<BotButton
label="Chat with Bot"
dialogWidth={350}
dialogHeight={500}
onConversationComplete={(userInputs) => console.log(userInputs)}
/>
</div>
);
}
export default App;
Props
| Prop | Type | Default | Description | |------|------|---------|-------------| | label | string | - | Text to display on the button | | botIconImg | string | - | URL of an image to use as the bot icon | | dialogWidth | number | 350 | Width of the chat dialog in pixels | | dialogHeight | number | 500 | Height of the chat dialog in pixels | | marginBottom | number | 20 | Bottom margin of the dialog in pixels | | marginRight | number | 20 | Right margin of the dialog in pixels | | className | string | - | Additional CSS class for styling the button | | onConversationComplete | function | - | Callback function called when the conversation is complete |
Website
For more detailed information about the Bot Package, including advanced usage, configuration options, and live demos, please visit our website:
Features
- Customizable chat interface
- Email verification (currently not working, and advised to not use)
- YouTube video embedding
- Customizable styling
License
This project is licensed under the MIT License - see the LICENSE file for details.