June 2026 - Banner Positioning Strategy
Added flexible positioning strategies to the Banner component for fixed, static, sticky, and absolute layouts.
The Banner component now supports multiple positioning strategies, giving you more control over how banners are rendered in your layout.
Positioning Strategies
The Banners provider accepts a new strategy prop with four options:
fixed(default): Fixed to the viewport, rendered via portal intodocument.bodyabsolute: Positioned within a container, rendered via portal (container needsposition: relative)static: Rendered inline, pushes content downsticky: Sticks within a scroll container
// Inline banner that pushes content down
<Banners strategy="static">
<App />
</Banners>
// Sticky banner within a scroll container
<Banners strategy="sticky" side="top">
<App />
</Banners>fixed and absolute strategies portal banners out of the DOM tree. static and sticky render banners inline, either above or below children depending on side.
Other Improvements
- Improved type documentation for
BannersandBannerprops - Aligned stacked banner demo action order (primary → secondary) for consistent dismiss targets