Skip to main content

ChatMessage

Reusable ChatMessage component

Example

import { ChatMessage } from '@lad-tech/mobydick-core';

export const ChatWidget = () => {
return (
<ChatMessage isMe={true} time={'12-12-1998'} message={'message'} />
);
};

Props

Required
isMe

TYPE
boolean

Place message to right or left

Required
time

TYPE
string mating RegExp /^([01]\d|2[0-3]):[0-5]\d$/

Time of message

message

TYPE
string

Text of message

image

TYPE
FileHandle | URI

image for message