@connectycube/chat-widget
Version:
A customizable React chat widget built on the ConnectyCube platform, enabling real-time messaging, calls, and user engagement in any web app.
27 lines • 1.07 kB
TypeScript
import * as React from 'react';
import { type TextareaAutosizeProps } from 'react-textarea-autosize';
import { type LucideProps } from 'lucide-react';
import { type LabelProps } from './label';
interface ChatInputSendProps extends LabelProps {
onSend: () => void;
iconElement?: React.ReactNode;
iconProps?: LucideProps;
}
interface ChatInputProps extends TextareaAutosizeProps, Omit<React.ComponentProps<'textarea'>, 'style'> {
children?: React.ReactNode;
pending?: boolean;
draft?: string;
onSend?: (value?: string) => void;
onDraft?: (value?: string) => void;
onTyping?: (typing?: boolean) => void;
onHeightGrow?: (data: {
height: number;
shift: number;
}) => void;
hideChatInputSend?: boolean;
chatInputSendProps?: ChatInputSendProps;
containerProps?: React.ComponentProps<'div'>;
}
declare const ChatInput: React.ForwardRefExoticComponent<Omit<ChatInputProps, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
export { ChatInput, type ChatInputProps };
//# sourceMappingURL=chat-input.d.ts.map