UNPKG

techouts-chatbot

Version:

A customizable React chatbot component with Tailwind CSS - Supports React 18 & 19

19 lines (18 loc) 456 B
import React from 'react'; export interface Message { id: string; text: string; sender: 'user' | 'bot'; timestamp: Date; } export interface ChatbotProps { title?: string; initialMessages?: Message[]; onSendMessage?: (message: string) => Promise<string | void>; placeholder?: string; className?: string; showHeader?: boolean; primaryColor?: string; } declare const Chatbot: React.FC<any>; export default Chatbot;