Toasts are created from JavaScript: toast("Message", { variant: "success" }). The message is always inserted as text rather than HTML, so it is safe to use with user data.
Toast variants
Click a button to raise a notification
Calling it from JavaScript
Typically used when an API request returns