UNPKG

@kiwicom/orbit-components

Version:

Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.

55 lines (45 loc) 2.81 kB
# ButtonMobileStore To implement ButtonMobileStore component into your project you'll need to add the import: ```jsx import ButtonMobileStore from "@kiwicom/orbit-components/lib/ButtonMobileStore"; ``` After adding import into your project you can use it simply like: ```jsx <ButtonMobileStore type="appStore" /> ``` ## Props Table below contains all types of the props available in the ButtonMobileStore component. | Name | Type | Default | Description | | :-------------- | :------------------------- | :------ | :-------------------------------------------------------------------------------------------------------------- | | alt | `string` | | Optional property for passing own `alt` attribute to the DOM image element. | | dataTest | `string` | | Optional prop for testing purposes. | | id | `string` | | Set `id` for `ButtonMobileStore` | | href | `string` | | The URL to link when the ButtonMobileStore is clicked. | | onClick | `event => void \| Promise` | | Function for handling onClick event. | | stopPropagation | `boolean` | | If `true` the click event won't bubble. Useful when you use ButtonMobileStore inside another clickable element. | | **type** | [`enum`](#enum) | | The type of the ButtonMobileStore. | | lang | [`enum`](#enum) | `EN` | The language of button | ### enum | type | lang | | :------------- | :----- | | `"appStore"` | `"EN"` | | `"googlePlay"` | `"ZH"` | | | `"BG"` | | | `"CS"` | | | `"DA"` | | | `"DE"` | | | `"ES"` | | | `"FI"` | | | `"FR"` | | | `"HU"` | | | `"IT"` | | | `"JA"` | | | `"KO"` | | | `"NL"` | | | `"PL"` | | | `"PT"` | | | `"RO"` | | | `"RU"` | | | `"SK"` | | | `"SR"` | | | `"SV"` |