Alerts display in direct response to a user action (e.g. clicking the Submit button on a form) and can be informational or identify actions required on that page before the user can continue. They appear at the top of the content area, push other content down, and persist until the user dismisses them or navigates away from the page. There are four types of notifications: error, warning, success, and informational.
- Providing a user contextual information or status of an action they’re trying to complete in a specific element on the visible page.
Don’t use when
- Providing a user with a message related to a page-level or out-of-view event, like completion of a report generation. Instead, use a Toast.
- Providing a user with a system-level message, like a network outage or browser incompatibility. Instead, use a Modal
- Attaching an error message to an input.
|New component added.
|D. Bedick, E. Bohn, N. Cadsawan, E. Gunther, I. Perez, J. A. Provin Silva, L. Saenz, C. Starbird, R. Stillwell, S. Kaukonen, N. Byati