Alert Banner
A persistent, in-flow status container placed at the top of a page or section to surface warnings, errors, or important notices with clear actions
Table of Contents
Interactive Playground
Tap or drag to interact with the demoWhat is Alert Banner?
A persistent, in-flow status container placed at the top of a page or section to surface warnings, errors, or important notices with clear actions. It is a core concept in UI Components within UI / UX.
Core Principles
An Alert Banner (or Callout) lives directly in the page flow to communicate persistent status information that users must not miss. Unlike ephemeral toasts, it remains visible until the underlying condition is resolved or explicitly dismissed.
Banners typically map to four semantic severities—Info, Success, Warning, and Error—pairing color with distinct iconography and concise copy.
Practical Takeaways
- Never rely on color alone: Pair semantic tinting with unmistakable status icons and accessible contrast so severity is clear for color-blind users too.
- Combine diagnosis with a next action: Instead of only stating
Payment failed, include a directUpdate cardCTA right inside the banner so users can fix the issue immediately. - Prevent banner blindness: Stacking multiple banners dulls urgency. Cap visible banners to the highest-priority 1–2 messages, using
role="alert"for urgent errors androle="status"for polite updates.
Notable Examples
- Global billing or trial bars:
Your trial ends in 3 days — Upgrade plananchored above a workspace. - Form error summaries: Listing validation errors above a long form with anchor links to each invalid field.
- System maintenance notices: Persistent top banners warning about scheduled downtime or degraded APIs.