Alert

A callout for important information, with optional status colors.

Scheduled maintenance
Projects will be read-only on Saturday from 02:00 to 03:00 UTC.
Shared views are here
Save a filter and share it with your team. Learn more
Payment received
Invoice INV-1042 was paid in full.
Storage almost full
You’ve used 9.2 of 10 GB. Remove old files or add more storage.
Deployment failed
The build for mobile-app exited with code 1.

Installation

  1. Add the registryOnce per project
  2. Add alert

Usage

Put an icon first to show it beside the text.

Alerts don't announce themselves. For a message that appears after something the user did, add role="alert" or role="status", or use a toast.

Composition

Examples

With actions

AlertAction puts buttons in the top right corner. Give an icon-only dismiss button an aria-label.

Scheduled maintenance
Projects will be read-only on Saturday from 02:00 to 03:00 UTC.
Payment received
Invoice INV-1042 was paid in full.
Deployment failed
The build for mobile-app exited with code 1.

Title only

Your changes were saved.

Without an icon

Two-factor authentication is off
Turn it on in your security settings to protect your account.

Props

Alert