Message Bar
MessageBar shows persistent status at the top of a page or section — session warnings, connectivity loss, or validation summaries that should stay visible until resolved.
Pick MessageBarIntent for severity, switch to MessageBarLayout::Multiline when you need a title, body, and action row. For fleeting confirmations, use Toast instead.
- Page-level or section-level status that must remain visible until the user acts
- Warnings with optional retry or dismiss actions in
MessageBarActions
Prefer Toast for short-lived saves or errors that should not block the UI. Prefer Field validation for errors tied to a single form control.
- Set
intentto match severity (Info,Success,Warning,Error). - Put primary copy in
MessageBarBody; addMessageBarTitlewhen the message needs a headline. - Use
layout=MessageBarLayout::Multilinewhen stacking title, body, andMessageBarActions. - Place retry or dismiss Button children in
MessageBarActions— there is no built-in close icon.
Show all four severity presets side by side so teams can pick the right tone for status, success, warning, and error states.
Pair a bold title with supporting body copy — one example per intent on the default single-line layout.
Multiline layout stacks title and body when the message needs more room or a footer action row below.
Place retry or dismiss actions in the footer so users can respond without leaving the banner context.
Message bar borders and backgrounds inherit intent tokens from the Orbital theme provider.