Message Box
Message Box Component
Emre
What are you doing ?
Example Usage
import { MessageBox } from "react-chat-elements";
<MessageBox
position='left'
title='Burhan'
type='text'
text="Hi there !"
date={new Date()}
replyButton={true}
/>
<MessageBox
position="right"
title="Emre"
type="meetingLink"
text="Click to join the meeting"
date={new Date()}
/>
Result
Burhan
Hi there !
Emre
Click to join the meeting
MessageBox Props
MessageType List
type | props details |
---|---|
text | Text Message Props |
location | Location Message Props |
photo | Photo Message Props |
video | Video Message Props |
meeting | Meeting Message Props |
system | System Message Props |
file | File Message Props |
meetingLink | Meeting Link Message Props |
audio | Audio Message Props |
spotify | Spotify Message Props |
IMessageBoxProps
props | default | type | description |
---|---|---|---|
onMessageFocused | none | - | message box focused |
renderAddCmp | none | React.Component | message box renderAddCmp |
onClick | none | function | message box onClick event |
onOpen | none | function | message box on open event |
onPhotoError | none | function | message box onPhotoError |
onContextMenu | none | function | message box onContextMenu |
onForwardClick | none | function | message box onForwardClick |
onReplyClick | none | function | message box onReplyClick |
onRemoveMessageClick | none | function | message box onRemoveMessageClick |
onTitleClick | none | function | message box onTitleClick |
onReplyMessageClick | none | function | message box onReplyMessageClick |
onMeetingMessageClick | none | function | message box onMeetingMessageClick |
onDownload | none | function | message box onDownload |
onMeetingMoreSelect | none | function | message box onMeetingMoreSelect |
onMeetingLinkClick | none | function | message box onMeetingLinkClick |
onMeetingTitleClick | none | function | message box onMeetingTitleClick |
onMeetingVideoLinkClick | none | function | message box onMeetingVideoLinkClick |