New to KendoReact? Start a free 30-day trial
Message Attachments
Message AttachmentsPremium
Chat messages may contain attachments such as images, videos, or data.
Supported Attachment Types
The Chat provides built-in support for displaying:
- Images—The
contentTypemust start with"image/". Thecontentmust be a valid URL. - Plain-text attachments—The built-in Chat template displays any content other than images as text.
Defining Attachments
To define attachments for a message:
- Populate the
attachmentsfield of the message. - Set the
contentand an optionalcontentTypefor each Attachment. Typically, thecontenttype identifier for the attachment is MIME, but you can also use a string.
Display Modes
By default, message attachments are displayed as a carousel or card deck below the message. You can also display attachments in a list by setting the attachmentLayout of the message.
Change Theme
Theme
Loading ...