You are viewing version 6.0.0 of the library, the latest version is

Alerts: Error

<button class="btn btn-primary" data-toast-type="error" data-toast-text="Hi! I'm error message.">
    error message
</button>

Alerts - Do not implement!

Modals are used instead of alerts.

Based on the version from MDB:
https://mdbootstrap.com/javascript/alerts/