1.11.0 • Published 5 years ago

react-faq-base v1.11.0

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
5 years ago

React FAQ Base

This is a base chat library for FAQ bots.

Installation

yarn add react-faq-base

Usage

  1. 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

PropertyDescriptionTypeRequired
base_urlURL to the backendhttptrue
initial_messagesWelcome messages to greet the userArraytrue
bot_nameName of the bot displayed in the chat headerStringtrue
primary_colorPrimary color for the chat windowHexfalse
bot_srcBot icon displayed in chat header and below bot's messageshttpfalse
bot_invertedBot icon displayed inside toggle buttonhttpfalse
resetcommand to fire on reset button is clickedStringfalse

License

MIT

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