Skip to main content Home
About About the Design SystemRoadmap
Get started OverviewDesignersDevelopers
Foundations OverviewColorGridIconographySpacingTypography
Tokens Overview Global colorbox shadowTypographyborderopacityspacelengthIconBreakpointsMedia Queries
Elements All elements Accordion Alert Announcement Audio player Avatar Back to top Badge Blockquote Breadcrumb Button Card Chip Code block Call to action Dialog Disclosure Footer Health index Icon Jump links Navigation (primary) Navigation (secondary) Pagination PopoverPlanned Progress stepsPlanned Site status Skip link Spinner Statistic Subnavigation Surface Switch Table Tabs Tag Tile Timestamp Tooltip Video embed
Theming OverviewColor PalettesCustomizingDevelopers
Patterns All PatternsCardTabsFilterFormLinkLink with iconLogo wallSearch barSkip navigationSticky bannerSticky cardTileVideo thumbnail
Personalization All Personalization PatternsAnnouncement
Accessibility FundamentalsAccessibility toolsAssistive technologiesCI/CDContentContributorsDesignDevelopmentManual testingResourcesScreen readers
Design/code status Release notes Get support

Alert

OverviewStyleGuidelinesCodeAccessibilityDemos
StyleVariantsSpaceInteraction statesStyleVariantsSpaceInteraction states

Style

An alert is a layout including an icon, title, text, actions, and a close button. It comes in a variety of colors depending on status. A toast is a variant of alert. Instead of having a background color, it has a white background with a drop shadow.

Anatomy

Alert with numbers pointing to parts of the element
  1. Status icon
  2. Title
  3. Body text
  4. Action buttons
  5. Close button
  6. Color background
  7. White background with drop shadow

Variants

Inline

The default alert is inline. At minimum, the status icon and title need to be visible.

Two examples of an inline alert

Inline alternate

There is an alternate inline alert where the border covers all sides.

Two examples of an alternate design for inline alerts

Toast

Same as the inline alert, at minimum, the status icon and title need to be visible.

Two examples of a toast alert

Space

Diagram of spacing for inline alerts Diagram of spacing for toast alerts

Diagram of spacing for alerts on mobile

Interaction states

Refer to these documentation pages for interaction states:

© 2021-2025 Red Hat, Inc. Deploys by Netlify