Velocity X Components

Growth & Conversion

Exit-Intent Offer Bar

A last-chance discount bar that drops in from the top the moment a visitor looks ready to leave — exit-intent on desktop, fast scroll-up on mobile. Shows once per session with a cooldown, so it never nags a returning visitor.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add exit-intent-offer-bar

Built for react. Needs react already installed as a peer dependency. An Astro-only project needs @astrojs/react wired up first — this won't run on its own in plain Astro.

Full docs for Exit-Intent Offer Bar →

Needs a licence key — subscribe here, then velocityx loginonce.

react v1.0.1 react
Exit-Intent Offer Bar

Props

NameTypeRequiredDefaultDescription
enabledbooleanNotrueMaster switch.
cooldownDaysnumberNo7Don't re-show for this many days after a dismissal.
excludePathsstring[]No['/checkout', '/dashboard', '/components']Path prefixes where the bar must never appear.
eyebrowstringNo'Before you go'Copy.
messagestringNo'Take 10% off your first order.'
codestringNo'WELCOME10'
ctastringNo'Claim offer'
hrefstringNo'/pricing'
onDismiss() => voidNoCalled when the visitor dismisses the bar.
onClaim() => voidNoCalled when the visitor clicks the CTA.

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/exit-intent-offer-bar/ExitIntentOfferBar.tsx

Using the Exit-Intent Offer Bar component

Install it with velocityx add exit-intent-offer-bar. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Growth & Conversion.