UNPKG

puppychat

Version:

A beautiful React chat interface component with TypeScript support

26 lines 719 B
export interface Message { id: string; content: string; sender: 'user' | 'bot'; timestamp: Date; } export interface ChatInterfaceProps { onSendMessage?: (message: string) => Promise<string> | string; initialMessages?: Message[]; placeholder?: string; title?: string; className?: string; disabled?: boolean; width?: string | number; height?: string | number; welcomeMessage?: string; showAvatar?: boolean; recommendedQuestions?: string[]; showRecommendedQuestions?: boolean; showHeader?: boolean; borderWidth?: number; backgroundColor?: string; bg?: string; variant?: 'main' | 'bubble' | 'sidebar'; } //# sourceMappingURL=index.d.ts.map