ComponentsNavigation

Store badges

Download links for App Store and Google Play drawn from tokens with a generic icon and plain text — no store artwork to license — plus any other store, and an optional QR code shown on wide screens so a desktop visitor can jump to their phone.

components/store-badges.tsxtheme · material · accent · density · font

Installation

$ pnpm add @vamos-ui/react

The whole kit as one package — get updates by bumping the version. Add the styles to globals.css: @import "@vamos-ui/react/styles.css";

Usage

import { StoreBadges } from "@vamos-ui/react";

<StoreBadges appStore={links.ios} googlePlay={links.android} qr="https://example.com/get-the-app" />

Each badge is a plain link whose name is its visible text ("Get it on Google Play"); the list is named "Get the app".

The stores' own badge artwork has usage rules. If your brand guidelines require it, replace the badges with the official files; this component never ships them.

The QR code is hidden below the lg breakpoint, where the visitor is most likely already on a phone.

Examples

Outline, large, more stores, labels

variant="outline" on busy backgrounds, size="lg" for heroes, stores for any other download, labels for the wording.

API

StoreBadges

PropTypeDefault
appStore / googlePlay
Store links; a badge appears for each one given.
string—
stores
More badges after the two above.
{ href, lead, name, icon? }[]—
qr
QR code beside the badges on wide screens: a URL (a link that redirects to the right store is best) or true for the first store link.
boolean | string—
variant
Inverted pills or bordered on the surface.
"solid" | "outline""solid"
size
Badge and QR size.
"md" | "lg""md"
labels
Dictionary namespace "storeBadges": label, appStoreLead, appStoreName, googlePlayLead, googlePlayName, qr, qrCaption.
Partial<StoreBadgesLabels>—