items

const val items: String

An array of objects which will be rendered as messages. The message objects can have the following properties:

Array<{
text: string,
time: string,
userName: string,
userAbbr: string,
userImg: string,
userColorIndex: number,
className: string,
theme: string,
attachments: Array<{
name: string,
url: string,
type: string
}>
}>

When a message has attachments, they are rendered in the message's shadow DOM. Image attachments (type starting with "image/") show a thumbnail preview, while other attachments show a document icon with the file name. Clicking an attachment dispatches an attachment-click event.