The chat message component is a UI component designed to display individual
messages within a chat or messaging interface. It is commonly used in
applications or websites that involve real-time communication, such as
messaging platforms, chatbots, or customer support systems.
Example


John Doe
Hey Buddy!
uis nostrud exercitation ullaril mco labil oris nisi ut aliquip ex ea commo
dorli consequa duis aute irure dolor lorii
-- message-left: Hi!
username: John Doe
time: 12.36 pm
-- ftd.text: Hi!
Yo!
in voluptate velit esse cillum dolor er eu fugiat nulla pariatur. Excepte urla
sint occaecat cupidatat nor proident,
Sed ut perspiciatis unde omnis isa te natus error sit volupta tem.




John Doe
Lorem ipsum dolor sit amet,
How to use
Add bling
dependency into your FASTN.ftd
-- fastn.dependency: fastn-community.github.io/bling
import chat
inside your .ftd
file
-- import: fastn-community.github.io/bling/chat
sample usage of -- message-left
& -- message-right
-- message-left: Hi!
username: John Doe
time: 12.36 pm
-- message-right: Hey! how are you doing?
time: 12.36 pm
Properties:
Below are details of all properties of triangular
component.
It's used to add title as a message to the message-left
and message-right
components.
avatar
type:
ftd.image-src (optional
)
It's used to add user image to the message-left
and message-right
components.
round-avatar
type:
Boolean (optional
, default: true
)
If round-avatar
property set as false
then user image will be seen as
square. By default it will be seen as rounded image.