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.

type
theme
width
layout
import { BannerSlimDefault } from "@/components/shared-assets/banners/banner-slim-default"; <BannerSlimDefault />

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.

The components in this family, with their descriptions and import paths
ComponentDescriptionImport from
BannerSlimDefaultA one-line announcement with an inline text link.@/​components/​shared-assets/​banners/​banner-slim-default
BannerSingleActionDefaultFeatured icon, two-part message, and one secondary action button.@/​components/​shared-assets/​banners/​banner-single-action-default
BannerDualActionDefaultAllow and Decline buttons for a consent decision, with a policy link.@/​components/​shared-assets/​banners/​banner-dual-action-default
BannerTextFieldDefaultEmail capture in place: a required input and a Subscribe submit in a form.@/​components/​shared-assets/​banners/​banner-text-field-default
BannerCountdownDefaultPromo message beside 3 static countdown unit cards.@/​components/​shared-assets/​banners/​banner-countdown-default

The two axes every type shares

The default theme sits on ordinary surface tokens and follows the page theme; the brand theme paints the brand section surface with on-brand text and the dark 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.

BannerSlimDefault

We've just launched a new feature!

Check out the new dashboard.

BannerSlimBrand

We've just launched a new feature!

Check out the new dashboard.

BannerSlimDefaultFullWidth

We've just launched a new feature!

Check out the new dashboard.

BannerSlimBrandFullWidth

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.

BannerSingleActionDefault

We've just announced our Series A!

Read about it from our CEO.

BannerSingleActionBrand

We've just announced our Series A!

Read about it from our CEO.

BannerSingleActionDefaultFullWidth

We've just announced our Series A!

Read about it from our CEO.

BannerSingleActionBrandFullWidth

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.

BannerDualActionDefault

We use third-party cookies in order to personalize your experience

Read our Cookie Policy.

BannerDualActionBrand

We use third-party cookies in order to personalize your experience

Read our Cookie Policy.

BannerDualActionDefaultFullWidth

We use third-party cookies in order to personalize your experience

Read our Cookie Policy.

BannerDualActionBrandFullWidth

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.

BannerTextFieldDefault

Stay up to date with the latest news

Be the first to hear about new components, updates, and design resources.

BannerTextFieldBrand

Stay up to date with the latest news

Be the first to hear about new components, updates, and design resources.

BannerTextFieldDefaultFullWidth

Stay up to date with the latest news

Be the first to hear about new components, updates, and design resources.

BannerTextFieldBrandFullWidth

Stay up to date with the latest news

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.

BannerCountdownDefault

30% off PRO ends soon

Lock in your annual plan today.

8

hrs

16

mins

24

secs

BannerCountdownBrand

30% off PRO ends soon

Lock in your annual plan today.

8

hrs

16

mins

24

secs

BannerCountdownDefaultFullWidth

30% off PRO ends soon

Lock in your annual plan today.

8

hrs

16

mins

24

secs

BannerCountdownBrandFullWidth

30% off PRO ends soon

Lock in your annual plan today.

8

hrs

16

mins

24

secs