App-bridge Modal - Not able to add any html tags in body

Av18
Shopify Partner
12 1 0

I've added the Shopify app-bridge Modal by using this doc. https://shopify.dev/docs/api/app-bridge/previous-versions/actions/modal.

 

const modalOptions = {
title: 'My Modal',
message: 'Hello world!',
};

 

Shopify App-Bridge Modal issue.png

 

But how can I add my HTML tags means <div>, <span>, and more instead of the only text in the message field? 

Replies 0 (0)