Back to gallery

Banner and Alert

Types

Each type with a primary and secondary button and a dismiss button. Clicking reports in the line below.

Nothing clicked yet

Buttons

Disabled primary, secondary and danger buttons, the danger button, an error notice with a retry button, and the primary and secondary color options.

Variants

Every variant of the source Banner, each with a title, content, an icon and two buttons where the variant shows them.

default

callout

announcement

announcementInset

catalog

settings

embedded

status

informationNotice

insetNotice

privacyNotice

pageNotice

page

strip

strip, type error

promotion

browserNotice

composerContext

beacon

authUpsell

Layouts and density

The five layouts, then the compact density, then the callout and settings variants in the icon layouts.

horizontal

inline

vertical

verticalIcon

warningCallout

density default

density compact

callout, verticalIcon

settings, verticalIcon

warningCallout, compact density, no separator

Narrow and wide containers

With stackOnNarrow the buttons wrap to their own row below 560px (400px when attached to the composer). Pick a container width.

Container width

Attached to the composer

The banner tucks 36px under the composer. The compact form is the small variant of the same option.

attachedToComposer

Ask for follow-up changes

attachedToComposer="compact"

Ask for follow-up changes

Recovery card

The recovery card enters with a short fade and slide. With the footer placement it moves into the footer slot below and keeps focus.

Footer slot

Alert

Alert is the content shared with the toast family. Every level, every variant, actions with a loading state, an inline action and a close button.

The info alert
A short line that says more.
The success alert
A short line that says more.
The warning alert
A short line that says more.
The danger alert
A short line that says more.
successNeutral
A short line that says more.
successSolid
A short line that says more.
dangerSolid
A short line that says more.
With actions
Two actions below the text.
Inline action

Closed: none

Nothing clicked yet

Eyebrow and composer notices

The eyebrow notice sits above the composer and the composer overlaps it. The composer-attached notice has a default and a beacon form, with the actions beside, below, or below on narrow.

Nothing clicked yet

Ask for follow-up changes

default

badge, actions in the body

actions in the body on narrow

loading and disabled actions

beacon

beacon, narrow

beacon attached to the composer

Ask for follow-up changes

Right to left

Logical padding, margins and borders flip. The wash and the warning bar sit on the start side.

تنبيه
سطر قصير يضيف المزيد.
Ask for follow-up changes

Light and dark

Each panel sets its own theme scope, so the appearance control above does not change them. The two lower panels nest the opposite theme inside, and the nested parts follow the nearest scope.

Light theme

The info alert
A short line that says more.
The success alert
A short line that says more.
The warning alert
A short line that says more.
The danger alert
A short line that says more.
Saved
Failed
Ask for follow-up changes

Dark theme

The info alert
A short line that says more.
The success alert
A short line that says more.
The warning alert
A short line that says more.
The danger alert
A short line that says more.
Saved
Failed
Ask for follow-up changes

Dark theme, with a light panel inside

The info alert
A short line that says more.
The success alert
A short line that says more.
The warning alert
A short line that says more.
The danger alert
A short line that says more.
Saved
Failed
Ask for follow-up changes

Light theme, nested in dark

The info alert
A short line that says more.
The success alert
A short line that says more.
The warning alert
A short line that says more.
The danger alert
A short line that says more.
Saved
Failed
Ask for follow-up changes

Light theme, with a dark panel inside

The info alert
A short line that says more.
The success alert
A short line that says more.
The warning alert
A short line that says more.
The danger alert
A short line that says more.
Saved
Failed
Ask for follow-up changes

Dark theme, nested in light

The info alert
A short line that says more.
The success alert
A short line that says more.
The warning alert
A short line that says more.
The danger alert
A short line that says more.
Saved
Failed
Ask for follow-up changes