PromoTab
Bottom-right floating campaign pill that opens a full-campaign Modal on click. Composes the CountdownTimer primitive inside the modal so the deadline stays visible without leaving the surface. Dismissible with localStorage-persisted session state; auto-hides when the campaign deadline passes. The production giveaway surface for the platform (legacy .promo-tab replacement).
The pill anchors to the bottom-right of the viewport — scroll to the corner if you don't see it. Click the pill to open the campaign modal. Click × to dismiss.
Without pulse
Pass showPulse={false} to quiet the pill down. Useful when running a permanent brand-promo pill rather than a time-bounded giveaway.
PromoTab floats relative to the real viewport (not this preview box), so only one demo on this page can show its pill at a time. This one's pill is hidden while another demo is active.
Without persistence
Omit dismissKey to make dismissal ephemeral — the pill re-appears on the next page load. Useful for staging / A-B experiments where you want repeat impressions.
PromoTab floats relative to the real viewport (not this preview box), so only one demo on this page can show its pill at a time. This one's pill is hidden while another demo is active.
Usage notes
- — Bottom-right anchored via
fixedpositioning. Mount once at the app shell root (below the layout children) so it appears on every route. - — Client-only render (localStorage check + hydration mismatch avoidance) — the pill won't appear until after client mount, so server response stays clean.
- —
dismissKeyis your namespace for the localStorage flag. Include the campaign identifier so a new campaign shows a fresh pill even if the user dismissed the previous one. - — When the campaign deadline passes, the pill hides itself automatically — no need to remove it from the DOM on the server side.
- — Composes shipped
CountdownTimer(stacked layout) +Modal+BrandedButton. Modal handles ESC-to-close, click-outside, focus trap.