Components
Banner
Citizen-facing advisories: release schedules, payment deadlines, maintenance windows. Dismissing collapses the height so content below slides up; it is never a dead overlay.
Usage
One advisory that affects everyone on the page.
Do and don't
- Do. Keep one primary action and let dismissal collapse the height.
- Don't. Stack banners or use one for field validation.
Composition
BannerTitle carries the one-line headline, BannerDescription the detail, and BannerActions holds up to two BannerAction buttons. One primary action at most.
Props
status="default" | "info" | "success" | "warning" | "error".contrast="low" | "high"; low is a neutral fill with a colored icon, high is a status wash. Use high only when the notice is the point of the page.variant="inline" | "fixed"; in page flow, or full-bleed above the scroll container.dismissible,open,onDismiss,dismissLabel; dismissal collapses the banner instead of unmounting it abruptly.icon; override the status glyph from the icon slot map.size="default" | "compact";motion; overrides the enter and dismiss timing.
Related
Status colors map to Colors. Urgency semantics belong to the optional civic expression, described in Expressions. Public advisories and emergency notices are never dismissed automatically; dismissal is always a user action.