puppychat
Version:
A beautiful React chat interface component with TypeScript support
25 lines • 976 B
TypeScript
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;
}
export default function ChatInterface({ onSendMessage, initialMessages, placeholder, title, className, disabled, width, height, welcomeMessage, showAvatar, recommendedQuestions, showRecommendedQuestions, showHeader, borderWidth, backgroundColor }?: ChatInterfaceProps): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=ChatInterface.d.ts.map