Hiyve Components - v1.0.0
    Preparing search index...

    Props for the ChatInput component.

    interface ChatInputProps {
        colors?: Partial<ChatPanelColors>;
        disabled?: boolean;
        emojiButtonLabel?: string;
        emojis?: readonly string[];
        icons?: Partial<ChatPanelIcons>;
        maxLength?: number;
        onError?: (error: Error) => void;
        onSend: (content: string) => void;
        placeholder?: string;
        showEmojiPicker?: boolean;
        styles?: Partial<ChatPanelStyles>;
        sx?: SxProps<Theme>;
    }
    Index

    Properties

    colors?: Partial<ChatPanelColors>

    Custom colors

    disabled?: boolean

    Whether the input is disabled

    emojiButtonLabel?: string

    Accessible label for the emoji picker button (default: 'Emoji')

    emojis?: readonly string[]

    Emojis offered by the picker (default: CHAT_EMOJIS)

    icons?: Partial<ChatPanelIcons>

    Custom icons

    maxLength?: number

    Maximum message length (default: CHAT_CONFIG.MAX_MESSAGE_LENGTH)

    onError?: (error: Error) => void

    Callback fired when an error occurs during message send

    onSend: (content: string) => void

    Callback fired when user sends a message

    placeholder?: string

    Placeholder text for the input field

    showEmojiPicker?: boolean

    Show the emoji picker button (default: true). When enabled, an emoji button opens a picker that inserts the selected emoji at the cursor.

    styles?: Partial<ChatPanelStyles>

    Custom styles

    sx?: SxProps<Theme>

    MUI sx styling prop