Skip to main content

App Market Download

App store download buttons for Apple App Store and Google Play. Renders styled buttons that open in a new tab.

Returns nothing if both URLs are omitted.

Summary

The App Market Download component renders a <section> with one or two download buttons. Each button links to the respective app store. The component renders nothing if neither appStoreUrl nor googlePlayUrl is provided.

Why Use This Component?

  • Consistent download buttons that match the active preset styling.
  • Conditional rendering — only shows buttons for stores where a URL is provided.
  • Accessible — links open in a new tab with proper rel="noopener noreferrer" attributes.

Usage

Options

PropTypeDefaultDescription
appStoreUrlstring | undefinedundefinedApple App Store URL. Button hidden if not set.
googlePlayUrlstring | undefinedundefinedGoogle Play Store URL. Button hidden if not set.
labelstring | undefinedundefinedOptional label text above the buttons.
surface'alt' | undefinedundefinedSet to 'alt' to use the alternate surface background.

Troubleshooting

  • Nothing rendering — The component returns nothing if both appStoreUrl and googlePlayUrl are undefined. Set at least one URL.