Velocity X Components

Growth & Conversion

App Install Prompt

A bottom-docked banner that nudges mobile visitors to open or install the native app, with iOS/Android-aware copy and store links, and a dismissal that snoozes for two weeks instead of forever.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add app-install-prompt

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 App Install Prompt →

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

react v1.0.1 react
App Install Prompt

Props

NameTypeRequiredDefaultDescription
appNamestringYes
iosAppStoreUrlstringNo
androidPlayUrlstringNo
deepLinkUrlstringNo
iconUrlstringNo
onDismiss() => voidNo
snoozeDaysnumberNo14
storageKeystring | nullNo'velocity.appinstall.dismissedUntil'

File this creates

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

text
components/velocity/app-install-prompt/AppInstallPrompt.tsx

Using the App Install Prompt component

Install it with velocityx add app-install-prompt. 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.