PhiaUi.Components.AppStoreButton (phia_ui v0.1.17)

Copy Markdown View Source

Apple App Store and Google Play Store badge buttons.

Renders store-branded download buttons with inline SVG icons. Follows the social_button.ex pattern — no external icon dependencies.

Examples

<.app_store_button store={:apple} href="https://apps.apple.com/..." />
<.app_store_button store={:google} href="https://play.google.com/..." />
<.app_store_button store={:apple} variant={:outline} size={:lg} />

Summary

Functions

Renders a store-branded download badge button with an inline SVG icon.

Functions

app_store_button(assigns)

Renders a store-branded download badge button with an inline SVG icon.

Attributes

  • store (:atom) (required) - App store platform. Must be one of :apple, or :google.
  • href (:string) - Store listing URL. Defaults to nil.
  • variant (:atom) - Defaults to :default. Must be one of :default, or :outline.
  • size (:atom) - Defaults to :default. Must be one of :sm, :default, or :lg.
  • class (:string) - Defaults to nil.
  • Global attributes are accepted.