Assets

App Store Badges
v1.1.2
Documentation Under Review

AppStoreBadges are easily recognizable visual elements that convey meaning and cues to the user in a compact and efficient way.

Installation

npm install @pmi/catalyst-app-store-badges

Overview

The App Store Badges package provides official download badges for mobile application stores. Each badge is built on top of the BaseIcon component from @pmi/catalyst-icons, ensuring consistent sizing, coloring, and rendering across all applications.

Examples

Basic Usage (Placeholder)

Display a placeholder badge with default settings:

Preview

API Reference

All app store badge components accept the same props as BaseIcon from @pmi/catalyst-icons:

Prop

Type

Accessibility

App Store Badges inherit accessibility features from the BaseIcon component and include additional considerations for interactive use:

ARIA Labels

When wrapping badges in links, always provide descriptive aria-label attributes:

<a href="..." aria-label="Download on the Apple App Store">
  <AppleAppStoreBadge size="full" color="original" />
</a>

Screen Reader Support

  • SVG badges are rendered with aria-hidden="true" by default
  • Meaning is conveyed through the parent link's aria-label
  • Avoid redundant text adjacent to badge images

Component Generation

App store badge components are auto-generated from SVG assets:

  • Components are generated by ~/process-packages-assets.cjs
  • Each SVG in assets/ directory becomes a component
  • Exports are managed by barrelsby
  • Do not manually edit generated component files

To add new badges:

  1. Add SVG file to src/components/app-store-badges/assets/
  2. Run asset processing script
  3. Components will be auto-generated and exported

On this page