UNPKG

wass-rct-ui

Version:

A lightweight and customizable WASS Rct UI component library for modern web applications.

37 lines (36 loc) 1.19 kB
/** * @file wass-rct-ui * @description A reusable Title component that supports dynamic heading levels. * @author Web Apps Software Solutions * @copyright © 2024 Web Apps Software Solutions. All rights reserved. * @license MIT * @repository https://github.com/WebAppSoftNK/wass-rct-ui */ import * as React from "react"; import { BaseColorVariant, BGColorVariant } from "../types"; import { ChatIconPosition } from "../types/ChatBot.type"; export interface ChatBotRef { addNewMessage: (message: string, sender?: "user" | "bot") => void; } export interface ChatBotProps { position?: ChatIconPosition; iconName?: string; iconColor?: string; iconSize?: number; chatBotTitle?: string; buttonColor?: BaseColorVariant; chatTheme?: BGColorVariant; defaultMessages?: { text: string; sender: "user" | "bot"; }[]; welcomeMessage?: string; botResponses?: { [key: string]: string; }; placeholderText?: string; quickReplies?: string[]; onAskQuestion?: (question: string) => void; } declare const ChatBot: React.ForwardRefExoticComponent<ChatBotProps & React.RefAttributes<ChatBotRef>>; export default ChatBot;