Banner
A prominent message displayed at the top of a page or section.Anatomy
Components
Banner.Root
The root container for the banner.Visual tone that determines the background and border color. Options:
neutral, info, success, warning, dangerCustom icon element. If not provided, displays a tone-appropriate icon.
Additional CSS classes
Banner.Icon
Icon that indicates the tone of the banner.Override the tone from context. Options:
neutral, info, success, warning, dangerAdditional CSS classes
Banner.Content
Container that groups the title and actions.Additional CSS classes
Banner.Title
The main message text of the banner.Additional CSS classes
Banner.Actions
Container for action buttons and close button.Additional CSS classes
Banner.Action
Action button (tertiary variant, xs size).Button variant (inherited from Button component)
Button size (inherited from Button component)
Additional CSS classes
Banner.Close
Button to dismiss the banner.Callback when close button is clicked
Additional CSS classes