UNPKG

react-mobile-app-button

Version:

Discover our versatile React component designed to effortlessly integrate download buttons for iOS App Store, Google Play Store, and Huawei AppGallery. With our component, you can easily enhance user experience by providing seamless access to your mobile

34 lines 1.05 kB
import React from "react"; import GooglePlay from "../../assets/icons/Google-Play"; import Button from "../Button"; /** * * @param {string} theme Choose a theme between dark and light * @param {number} height Controls the height of the button * @param {number} width Controls the width of the button * @param {string} title Set custom title for the button * @param {string} className Add className to the button in order to customize the button appearance * @param {string} url Add your store url to the button * @example <GooglePlayButton theme="light" height={70} width={130} className="button-container" url="https://play.google.com/" /> * @returns */ const GooglePlayButton = ({ theme = "light", height, title = "GET IT ON", width, className, url }) => { return /*#__PURE__*/React.createElement(Button, { theme: theme, height: height, width: width, url: url, storeName: "Google Play", logo: GooglePlay, className: className, title: title }); }; export default GooglePlayButton;