@heycar-uikit/app-store-button
v1.1.0
Published
HeyCar-UIKit App Store Button
Downloads
230
Maintainers
Readme
HeyCar-UIKit - App Store Button
App store badges for iOS and Android
Installation
To install and save in your package.json dependencies, run the command below using npm:
npm install @heycar-uikit/core
# Or
npm install @heycar-uikit/app-store-button
Usage
// TSX/JSX file
// Core import is recomended
import AppStoreButton from '@heycar-uikit/core/app-store-button';
// or
import AppStoreButton from '@heycar-uikit/app-store-button';
function App() {
return (
<div>
<AppStoreButton
href="https://apps.apple.com/uk/app/heycar/id1490142063"
lang="en-EN"
store="apple"
/>
<AppStoreButton
href="https://play.google.com/store/apps/details?id=com.mobility_trader_gmbh.heycar"
lang="en-EN"
store="google"
/>
</div>
);
}
// CSS file
// Core import is recomended
@import '@heycar-uikit/core/app-store-button/esm/AppStoreButton.css';
// or
@import '@heycar-uikit/app-store-button/dist/esm/AppStoreButton.css';
Documentation and sandbox
Storybook documentation and sandbox