How to create a custom toast message

I want to create a custom toast message like this

How to create any idea. please help

@Antony_Praveenkumar

Use this Dialog API

1 Like
frappe.show_alert({
    message:__('Hi, you have a new message'),
    indicator:'green'
}, 5);
1 Like

https://frappeframework.com/docs/user/en/api/dialog#frappe-show-alert

frappe.show_alert('Hi, you have a new message', 5);
frappe.show_alert({
    message:__('Hi, you have a new message'),
    indicator:'green'
}, 5);