UnreviewedAny data-* attribute is forwarded to the rendered element.
Any aria-* attribute is forwarded to the rendered element.
Optional UnreviewedmessageLeading message: a string at the banner type scale or any node.
Optional UnreviewedactionsTrailing controls (buttons, links) rendered as a compact row after the
message and children.
Optional UnreviewedchildrenSupporting content between the message and actions.
Optional UnreviewedtoneSemantic tone or a CSS color. Colors the surface, text, border, and dismiss control. Custom colors use an inline CSS variable; under a CSP that blocks style attributes, provide that variable through external CSS instead.
Optional UnreviewedalignPositions the content row. 'start' aligns it to the inline edge; 'center'
centers it. Wrapped message text follows the selected alignment.
Optional UnreviewedroundRounded corners for a standalone, floating banner (border-radius: 999px,
which clamps to a stadium) instead of the edge-to-edge strip. Still borderless
by default. Pass a number (px) or a CSS length string for a custom radius.
Optional UnreviewedclosableShow the built-in Dismiss control. Set false when the notice is permanent
or another action requests dismissal through data-banner-dismiss.
Optional UnreviewedroleHost role. Use 'status' for polite announcements or 'alert' for urgent ones.
Optional UnrevieweddismissedControlled visibility. Set true in onDismiss to accept a request, or keep
false to reject it. Set false to show the notice again. Dismissal hides the
host and retains its children; it does not unmount them.
Optional UnrevieweddefaultInitial dismissed state for the uncontrolled case (read once on mount).
Optional UnreviewedonDismissal request from the close control or a data-banner-dismiss action.
Controlled Banner stays visible until dismissed changes. Uncontrolled
Banner applies an uncanceled request itself.
Optional UnreviewedclassAdds CSS classes to the root element and preserves its existing classes.
Optional UnreviewedstyleInline CSS styles on the root element.
Optional UnreviewedidHTML id attribute.
Optional UnreviewedtitleHTML title attribute, shown as a browser tooltip on hover.
Optional UnreviewedslotNamed slot in a parent web component, such as slot="header" in a <Dialog>.
Optional UnreviewedtabTab order. Set to -1 to skip the element when tabbing.
Optional UnreviewedkeyReact/Preact reconciliation key when rendered inside a list. Consumed by the JSX runtime (not forwarded as a DOM attribute).
Props for the
<Banner>message strip.messageleads,childrenprecedeactions, andalignplaces the row.