UNPKG

@langbase/components

Version:

Ready to use components for building AI powered web apps

34 lines (31 loc) 1 kB
import * as react_jsx_runtime from 'react/jsx-runtime'; interface CustomStylesI { chatBtn?: { borderRadius?: string; backgroundColor?: string; foregroundColor?: string; }; chatbot?: { borderRadius?: string; backgroundColor?: string; foregroundColor?: string; }; } declare function Chatbot({ trigger, apiRoute, suggestions, openingMessage: openingContent, onConnect, onResponse, onError, onFinish, customStyles, title, triggerText, badge }: { apiRoute: string; trigger?: React.ReactNode; openingMessage?: string; suggestions?: { title: string; prompt: string; }[]; onConnect?: (...args: any[]) => any; onResponse?: (...args: any[]) => any; onError?: (...args: any[]) => any; onFinish?: (...args: any[]) => any; customStyles?: CustomStylesI; title?: string; triggerText?: string; badge?: string; }): react_jsx_runtime.JSX.Element; export { Chatbot, type CustomStylesI };