Skip to main content

Reply Message

Message Box

Message Box - Reply Status

Reply message can be use with given "reply" property at any time in your Message Box components.

Emre
Hi there !
Kursat
Emre
Hi there !
Hey ! How are you ?
Emre
Kursat
Hey ! How are you ?

Example Usage

import { MessageBox } from "react-chat-elements"

<MessageBox
reply={{
title: "Emre",
titleColor: "#8717ae",
message: "Nice to meet you",
}}
position={"left"}
type={"text"}
title="Esra"
text={
"Nice to meet you too !"
}
/>

Result

Esra
Emre
Nice to meet you
Nice to meet you too !

Reply Message Props (extends IMessage)

IMessage Props

propsdefaulttypedescription
idnonestring | numbermessage id
positionnonestringmessage position
textnonestringmessage text
titlenonestringmessage title
focusnonebooleanmessage focus
datenonenumber | Datemessage date
dateStringnonestringmessage date string
avatarnonestringmessage avatar
titleColornonestringmessage title color
forwardednonebooleanmessage forwarded
replyButtonnonebooleanmessage reply button
removeButtonnonebooleanmessage remove button
statusnone'waiting'| 'sent' | 'received' | 'read'message status
statusTitlenonestringmessage status title
notchnonebooleanmessage notch
copiableDatenonebooleanmessage copiable date
retractednonebooleanmessage retracted
classNamenonestringmessage className
letterItemnoneobjectmessage letterItem contains id:string, letter:ReactChild
replynoneobject | anymessage reply should be both any and object (contains message:string, photoURL:string)
typenonestringmessage type