Skip to content

Store Badge

Get Ritla UI

The official app store badges as links to your app's page, exactly as each store supplies them: never recolored, cropped or translated.

Ritla scan of this preview: 41 of 41 checks3 breakpointsScanned

Open in Figma

Preview

Mirrored is the same English content laid out right to left: it separates a mirroring bug from a translation one.

PreviewCode
EnglishMirroredArabic
LTR →

Installation

  1. Add the component

    npx ritla add store-badge

    Also works with shadcn: npx shadcn@latest add @ritla/store-badge

  2. Or copy by hand

    Installing by hand copies the component's source into your project. The source comes with a Ritla UI license, so the CLI is the short way to the same files.

Usage

store-badge.tsx
import { StoreBadge } from "@/components/ui/store-badge";<StoreBadge store="app-store" href="https://apps.apple.com/app/id…" /><StoreBadge store="google-play" href="https://play.google.com/store/apps/details?id=…" />

Examples

Stores and styles

brand in black on any surface, outline on light surfaces only. The Galaxy Store badge comes when its official artwork arrives.

EnglishMirroredArabic
LTR →

Sizes

lg 44px tall (default) and md 40px; the width follows each badge.

EnglishMirroredArabic
LTR →

API reference

StoreBadge

Any other <a> prop passes through (target, rel…).

PropTypeDefaultDescription
store"app-store" | "google-play" | "mac-app-store" | "appgallery" | "microsoft" | "amazon-store" | "f-droid"NoneFigma's Store.
hrefstringNoneRequired. Your app's page in the store.
variant"brand" | "outline""brand"Figma's Style.
size"md" | "lg""lg"Figma's Size: 40 and 44px.

Accessibility

Keyboard

Keys are written for left-to-right. In right-to-left the arrow keys swap: the one pointing toward the reading direction moves forward.

KeyAction
TabEnterA plain link: Tab reaches it, Enter opens it.

ARIA

  • The link's name is the badge text in English (“Download on the App Store”), on an image with lang="en", so screen readers read it in English even on an Arabic page.

Arabic and RTL notes

Mirrors

  • The order of badges in a row follows the page direction.

Does not mirror

  • The badge itself never mirrors or gets translated: Arabic badges come from the stores when available (Figma hasn't received them yet).
Numerals
Badges hold no numbers.
Arabic typography
The text is part of the official artwork, so the Ritla UI fonts don't change it.
Mixed-direction text
A badge is an image, unaffected by direction; put badges in a flex row so the order follows the language.

Checks it passes

The Ritla checks this component satisfies by construction. Used as documented, it does not bring these defects onto your page.

  • R050Arabic text falling back past the declared font family (measured, declared, or a webfont that failed to load)
  • R051letter-spacing applied to Arabic text (breaks the connected script)
  • R042Clipped text: content wider than its box with overflow hidden and no ellipsis
  • R043Fixed-pixel-width container whose Arabic text exceeds the space