Skip to content

Launch pricing: Pro $149 until Jan 15.See pricing

Facade UI
Browse the library

Components / Feedback

Promo bar

Free

Announcement bar on a warm drifting ember surface with a short phone text, a live countdown and a dismissal that never flashes back on reload.

View as Markdownlucide-reactmotion

Installation

npx shadcn@latest add https://facadeui.com/r/promo-bar.json

Usage

import { PromoBar } from "@/components/facade/promo-bar";

export default function Page() {
  return <PromoBar />;
}

Props

PromoBarProps is exported, so you can extend or wrap it. Every prop has a default; <PromoBar /> renders the example above.

Props of PromoBar
PropTypeDescription
text*React.ReactNodeMessage on tablet and desktop.
mobileTextReact.ReactNodeShorter message below 640px. Falls back to `text`.
badgestringShort bold lead, e.g. "Fall special". Hidden on phones to save space.
hrefstring
linkLabelstring
countdownTostringISO date with offset ("2026-11-30T23:59:00-05:00"). Shows a live countdown next to the text.
countdownLabelstringWords before the countdown. Defaults to "Ends in".
countdownOnMobilebooleanShow the countdown below 640px too. Off by default so the bar stays one line on phones.
hideWhenExpiredbooleanHide the bar once the countdown reaches zero. Defaults to true.
dismissibleboolean
storageKeystringlocalStorage key that remembers the dismissal. Change it for every new campaign.
onDismiss() => voidCalled after the bar has collapsed.
paletteEmberPaletteInputSurface colors. Defaults to "ember".
cyclebooleanCross-fade slowly between the presets.
driftbooleanLet the color fields drift. Defaults to true. Always static with reduced motion.
classNamestring

* required

Ask your agent

With the Facade MCP server connected, this prompt is enough:

Add the Facade promo bar to this page and adapt the copy to our business.

FAQ

How do I install the promo bar?

Run npx shadcn@latest add https://facadeui.com/r/promo-bar.json in a project with shadcn initialized. The source lands in components/facade/promo-bar.tsx and you own it.

Is the promo bar free?

Yes. It is MIT licensed and can be used in personal and commercial projects without a key.

Can I customize the promo bar?

Yes. It is plain React and Tailwind source in your project. Colors come from semantic tokens such as bg-brand, so your globals.css restyles it. 16 props are typed and exported as PromoBarProps.