Alert banner

Also called alert, notification banner, or callout

A colored strip in the page that delivers an important message, such as info, success, warning, or error, and stays until it is resolved or dismissed.

What is Alert banner?

An alert banner is a full-width box with an icon, a short message, and often an action or a close button. Its color matches the tone: blue for info, green for success, amber for warnings, and red for errors. It sits in the page layout, usually at the top of the page or a section, and pushes the content below it down.

Use it for messages that apply to the whole page and should stay visible until handled: a failed payment, scheduled maintenance, a trial that ends in three days, an error that blocks saving. For a quick confirmation such as “Saved”, use a toast, which disappears on its own.

Keep it to one sentence plus an action, and show one banner at a time where you can, since a stack of them reads as noise. Use role="alert" for urgent errors so screen readers announce them right away, and role="status" for calmer updates.

Often confused with

Toast notification
A toast floats over the page for a few seconds and disappears on its own. An alert banner sits in the layout and stays until the issue is fixed or someone dismisses it.
Modal
A modal blocks the page until you respond. An alert banner informs you while you keep working.
All terms

Toast notification

A brief message that slides into a corner of the screen to confirm an action, then disappears on its own after a few seconds.

Modal

A window that opens over the page, dims everything behind it, and blocks the rest of the interface until you finish or dismiss it.

Height auto animation

An animation that opens or closes a panel to the exact height of its content, even though that height is unknown ahead of time.

Inline validation

Form checking that happens right next to each field as you fill it in, showing an error or a checkmark before you press Submit.