@jeanmemory/react
Version:
React SDK for Jean Memory - Build personalized AI chatbots in 5 lines of code
39 lines (38 loc) • 1.32 kB
TypeScript
/**
* Jean Memory React SDK - Complete Chat Component
* Drop-in chat interface with authentication, input, and messages
*/
import React from 'react';
interface JeanChatCompleteProps {
/** Custom styles for the chat container */
style?: React.CSSProperties;
/** Custom CSS class for the chat container */
className?: string;
/** Placeholder text for the input field */
placeholder?: string;
/** Welcome message to show when chat is empty */
welcomeMessage?: string;
/** Example prompts to show users */
examplePrompts?: string[];
/** Show example prompts (default: true) */
showExamples?: boolean;
/** Show sign-out button (default: true) */
showSignOut?: boolean;
/** Custom header content */
header?: React.ReactNode;
/** Height of the chat area (default: 400px) */
chatHeight?: number;
}
/**
* Complete chat component with authentication guard
* Handles everything: auth, input, messages, sign out
*
* @example
* ```jsx
* <JeanProvider apiKey="your-key">
* <JeanChatComplete />
* </JeanProvider>
* ```
*/
export declare function JeanChatComplete({ style, className, placeholder, welcomeMessage, examplePrompts, showExamples, showSignOut, header, chatHeight }: JeanChatCompleteProps): import("react/jsx-runtime").JSX.Element;
export {};