Implementing Toast component in Polaris theme with HTML

Highlighted
Tourist
8 0 2

How can I call Shopify Polaris toast js function with HTML/Jquery?
I have checked this https://polaris.shopify.com/components/feedback-indicators/toast
and found an example of HTML but there is no JS provided in this example.

Which function do I need to call to show a toast?
How can I pass props for the message, time delay and error boolean etc?

0 Likes