UNPKG

easemob-chat-uikit

Version:

![Static Badge](https://img.shields.io/badge/platform-React-green) ![Static Badge](https://img.shields.io/badge/language-typescript-green) ![GitHub commit activity](https://img.shields.io/github/commit-activity/y/easemob/Easemob-UIKit-web) ![GitHub last c

27 lines (26 loc) 979 B
import React from 'react'; import { ChatSDK } from '../../SDK'; import { CurrentConversation } from '../../store/ConversationStore'; export interface TextareaProps { prefix?: string; className?: string; style?: React.CSSProperties; placeholder?: string; hasSendButton?: boolean; sendButtonActiveColor?: string; enableEnterSend?: boolean; enabledMention?: boolean; enabledTyping?: boolean; isChatThread?: boolean; onSendMessage?: (message: ChatSDK.TextMsgBody) => void; conversation?: CurrentConversation; onBeforeSendMessage?: (message: ChatSDK.MessageBody) => Promise<CurrentConversation | void>; onChange?: (value: string) => void; onFocus?: () => void; } export interface ForwardRefProps { setTextareaValue: (value: string) => void; divRef: React.RefObject<HTMLDivElement>; } declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<ForwardRefProps>>; export { Textarea };