Can I add any attributte to message

I want to create message with data-id attribute dynamically? How can do it?

         text: 'test',
         name: 'test'

<div class="message message-sent" class="message message-received message-with-avatar" data-id="{{messageId}}">


Not by default. To make it work, you need to pass custom renderMessage parameter to Messages component. Here is the default one for reference

1 Like