1.11.0 • Published 5 years ago
react-faq-base v1.11.0
React FAQ Base
This is a base chat library for FAQ bots.
Installation
yarn add react-faq-base
Usage
- Add component and pass props as listed below.
import React, { Component } from "react";
import Chat from "react-faq-base";
class Example extends Component {
render() {
return (
<Chat
base_url="http://my-backend-url"
initial_messages={["Hi, I am FAQ bot", "Powered by AI"]}
bot_name="Bot Foo"
primary_color="#fff"
reset={"/reset"}
/>
);
}
}
Props
Property | Description | Type | Required |
---|---|---|---|
base_url | URL to the backend | http | true |
initial_messages | Welcome messages to greet the user | Array | true |
bot_name | Name of the bot displayed in the chat header | String | true |
primary_color | Primary color for the chat window | Hex | false |
bot_src | Bot icon displayed in chat header and below bot's messages | http | false |
bot_inverted | Bot icon displayed inside toggle button | http | false |
reset | command to fire on reset button is clicked | String | false |
License
1.11.0
5 years ago
1.10.0
5 years ago
1.9.0
5 years ago
1.8.0
5 years ago
1.7.0
5 years ago
1.6.0
5 years ago
1.5.0
5 years ago
1.4.5
5 years ago
1.4.4
5 years ago
1.4.3
5 years ago
1.4.2
5 years ago
1.4.1
5 years ago
1.3.4
5 years ago
1.3.3
5 years ago
1.3.2
5 years ago
1.3.1
5 years ago
1.3.0
5 years ago
1.2.8
5 years ago
1.2.7
5 years ago
1.2.6
5 years ago
1.2.5
5 years ago
1.2.4
5 years ago
1.2.3
5 years ago
1.2.0
5 years ago
1.2.2
5 years ago
1.2.1
5 years ago
1.1.6
6 years ago
1.1.5
6 years ago
1.1.4
6 years ago
1.1.3
6 years ago
1.1.2
6 years ago
1.1.0
6 years ago
1.1.1
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago