Notifications

The notification component is a user interface element that displays brief, informative messages to users. It is typically used to provide feedback or notifications about the status of an action or to display important information.

Icon titleA more detailed description of the icon

Retrying in 5 sec

An error occurred. Check your disk space and make sure you have enough space.

Variations

Dark Themed Notifications

Files deleted

copydone

Files deleted

copydone

Retrying in 5 sec

An error occurred. Check your disk space and make sure you have enough space.

copydone

Retrying in 5 sec

An error occurred. Check your disk space and make sure you have enough space.

copydone
Icon titleA more detailed description of the icon

Retrying in 5 sec

An error occurred. Check your disk space and make sure you have enough space.

copydone
Icon titleA more detailed description of the icon

Retrying in 5 sec

An error occurred. Check your disk space and make sure you have enough space.

copydone

Light Themed Notifications

Files deleted

copydone

Files deleted

copydone

Retrying in 5 sec

An error occurred. Check your disk space and make sure you have enough space.

copydone

Retrying in 5 sec

An error occurred. Check your disk space and make sure you have enough space.

copydone
Icon titleA more detailed description of the icon

Retrying in 5 sec

An error occurred. Check your disk space and make sure you have enough space.

copydone
Icon titleA more detailed description of the icon

Retrying in 5 sec

An error occurred. Check your disk space and make sure you have enough space.

copydone

Primary Notifications

Files deleted

copydone

Files deleted

copydone

Retrying in 5 sec

An error occurred. Check your disk space and make sure you have enough space.

copydone

Retrying in 5 sec

An error occurred. Check your disk space and make sure you have enough space.

copydone
Icon titleA more detailed description of the icon

Retrying in 5 sec

An error occurred. Check your disk space and make sure you have enough space.

copydone
Icon titleA more detailed description of the icon

Retrying in 5 sec

An error occurred. Check your disk space and make sure you have enough space.

copydone

Secondary Notifications

Files deleted

copydone

Files deleted

copydone

Retrying in 5 sec

An error occurred. Check your disk space and make sure you have enough space.

copydone

Retrying in 5 sec

An error occurred. Check your disk space and make sure you have enough space.

copydone
Icon titleA more detailed description of the icon

Retrying in 5 sec

An error occurred. Check your disk space and make sure you have enough space.

copydone
Icon titleA more detailed description of the icon

Retrying in 5 sec

An error occurred. Check your disk space and make sure you have enough space.

copydone

Usage

Notifications (or snackbars) inform users of a process that an app has performed or will perform. They appear temporarily, towards the bottom of the screen and they shouldn’t interrupt the user experience.

Notifications communicate messages that are minimally interruptive and don’t require user action.

Specs

The main elements of the notification component are:

  • Container: notifications are displayed in rectangular containers (with y padding of 0.75rem and x padding of 1rem). Containers have an opaque background, so that text labels remain legible.
  • Supporting text: the text can consist of a title and a description (optional) both 0.75rem in font size.
  • Close button: notifications can be dismissed by the user. The close button is a 2rem x 2rem icon that is placed at the top right corner of the container.
  • Leading icon: notifications can have a leading icon (optional) that is placed at the top left corner of the container. The icon is 1.25rem x 1.25rem and is centered vertically and horizontally with the notification title.
  • Action button: notifications can have an action button (optional) that is placed after the text.

Accessibility notes

Notification components are messages that communicate information to a user. The WAI-ARIA role="status" is used to display a message to the user in a way that does not interrupt the user’s current task and queues the notification until whatever task the user is currently working on is complete.