Banners
Banners announce a site-wide message, a launch, a promotion, a consent decision, or an email capture, from the top or bottom edge of the page.
Banners
Banners announce a site-wide message, a launch, a promotion, a consent decision, or an email capture, from the top or bottom edge of the page.
Demo
The type, theme, and width pickers choose one of the 20 shipped compositions, and the layout picker previews the choice in a real 375px viewport, where the breakpoint styles actually flip. The snippet names the file it comes from and is identical in both layouts. There are no props to set: what you copy is an import and a self-contained element.
We've just launched a new feature!
Check out the new dashboard.
The family
Compositions, not configurable components: 5 banner types, each in a default and a brand theme, each as a floating contained card and a full-width bar, for 20 files with one export apiece. Each row below names the contained default; its siblings append Brand, DefaultFullWidth, and BrandFullWidth to the same name, in matching kebab-case modules, and all 4 render in the linked section. Every composition ships with sample content to replace.
| Component | Description | Import from |
|---|---|---|
| BannerSlimDefault | A one-line announcement with an inline text link. | @/components/shared-assets/banners/banner-slim-default |
| BannerSingleActionDefault | Featured icon, two-part message, and one secondary action button. | @/components/shared-assets/banners/banner-single-action-default |
| BannerDualActionDefault | Allow and Decline buttons for a consent decision, with a policy link. | @/components/shared-assets/banners/banner-dual-action-default |
| BannerTextFieldDefault | Email capture in place: a required input and a Subscribe submit in a form. | @/components/shared-assets/banners/banner-text-field-default |
| BannerCountdownDefault | Promo message beside 3 static countdown unit cards. | @/components/shared-assets/banners/banner-countdown-default |
The two axes every type shares
CloseButton in both modes. Contained is a rounded card with shadow-lg; full width is a square bar with a hairline border, rendered flush in the frames below so it meets an edge the way it would meet the viewport. None of the 20 pins itself to the viewport; placement is yours, and the rules are on the Guidelines tab.Slim
One line of copy with an inline text link, and a dismiss control. On md and up the copy centers and truncates rather than wrapping, so the message must survive a single line.
We've just launched a new feature!
Check out the new dashboard.
We've just launched a new feature!
Check out the new dashboard.
We've just launched a new feature!
Check out the new dashboard.
We've just launched a new feature!
Check out the new dashboard.
Single action
A featured icon, a two-part message, and one action button, shipped as a secondary button so the banner does not compete with the page’s own primary action. The action is a Button with href, so it renders as a link.
We've just announced our Series A!
Read about it from our CEO.
We've just announced our Series A!
Read about it from our CEO.
We've just announced our Series A!
Read about it from our CEO.
We've just announced our Series A!
Read about it from our CEO.
Dual action
A decision banner: Allow as a primary button beside Decline as a secondary one, with an inline policy link. The shipped copy is cookie consent, which is the shape of message this layout exists for.
We use third-party cookies in order to personalize your experience
Read our Cookie Policy.
We use third-party cookies in order to personalize your experience
Read our Cookie Policy.
We use third-party cookies in order to personalize your experience
Read our Cookie Policy.
We use third-party cookies in order to personalize your experience
Read our Cookie Policy.
Text field
Email capture in place: a required email input and a Subscribe submit inside a kit Form. The featured icon hides below md to make room for the field. The shipped submit handler only logs the form data, so wiring a real one is yours; see the Guidelines tab.
Stay up to date with the latest news and updates
Be the first to hear about new components, updates, and design resources.
Stay up to date with the latest news and updates
Be the first to hear about new components, updates, and design resources.
Stay up to date with the latest news and updates
Be the first to hear about new components, updates, and design resources.
Stay up to date with the latest news and updates
Be the first to hear about new components, updates, and design resources.
Countdown
A promo message beside three countdown unit cards. The shipped values are static numerals, 8, 16, and 24; nothing ticks until you supply the timer state yourself.
30% off PRO ends soon
Lock in your annual plan today.
8
hrs
16
mins
24
secs
30% off PRO ends soon
Lock in your annual plan today.
8
hrs
16
mins
24
secs
30% off PRO ends soon
Lock in your annual plan today.
8
hrs
16
mins
24
secs
30% off PRO ends soon
Lock in your annual plan today.
8
hrs
16
mins
24
secs