Banners
Full-width notification bars for announcements, system status, and promotional messages.
Variants
Dismissible
With Action
Combined
Custom Icon
The icon prop can override the default variant icon. Pass any React node to replace the built-in icon for a given variant.
Sticky Behavior
The sticky prop makes the banner stick to the viewport top with position: sticky. This is useful for persistent announcements or system status messages that should remain visible as the user scrolls. The sticky behavior is not demonstrated here to avoid interfering with the design system page layout.
ARIA Roles
Banners use appropriate ARIA roles based on their variant. The danger and warning variants use role="alert" for assertive announcements that immediately convey urgent information to assistive technologies. The info, success, and neutral variants use role="status" for polite announcements that do not interrupt the user. Dismissible banners announce their removal to screen readers when closed.