UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

12 lines (11 loc) 798 B
import type { TextareaHTMLAttributes } from 'react'; import React from 'react'; export type TextareaComposerProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'style' | 'defaultValue' | 'disabled' | 'value'> & { closeSuggestionsOnClickOutside?: boolean; containerClassName?: string; listClassName?: string; maxRows?: number; minRows?: number; shouldSubmit?: (event: React.KeyboardEvent<HTMLTextAreaElement>) => boolean; }; export declare const TextareaComposer: ({ className, closeSuggestionsOnClickOutside, containerClassName, listClassName, maxRows: maxRowsProp, minRows: minRowsProp, onBlur, onChange, onKeyDown, onScroll, onSelect, placeholder: placeholderProp, shouldSubmit: shouldSubmitProp, ...restTextareaProps }: TextareaComposerProps) => React.JSX.Element;