Tüm bileşenler
AppStoreBadge
12 export2 varyant ekseni8 prop5 dosya
import { AppStoreBadge, AppStoreBadgeVariant, AppStoreEntry, AppStoreId } from '@nili/ui';Henüz genel görünüm sayfası yok
Bu bileşen yayımlanmış ve tam tipli, ancak Figma genel görünüm çerçevesi henüz çizilmedi. Kod ve Prop’lar sekmeleri eksiksiz.
AppStoreBadge
extends Omit<ComponentPropsWithoutRef<'a'>, 'children' | 'color'>, AppStoreBadgeVariantProps
Varyant eksenleri — bileşenin cva tanımından
| Prop | Tip | Varsayılan | Notlar |
|---|---|---|---|
| size | sm | md | lg | xl | md | |
| variant | original | black | white | original |
Diğer proplar
| Prop | Tip | Varsayılan | Notlar |
|---|---|---|---|
| children | ReactNode | — | |
| aria-label | string | — | |
| store* | amazon | apple | huawei | fdroid | galaxy | google | microsoft | — | Which storefront. `APP_STORE_IDS` is the list. |
| href | string | — | Makes it a link. Without it the badge renders as a non-interactive span. |
| label | string | — | Accessible name. Defaults to the badge's own sentence, e.g. "Download on the App Store" — which is what the badge says, so overriding it is usually a mistake. |
| artwork | ReactNode | — | The store's official badge SVG, which replaces the built-in stand-in drawing entirely. Required before this ships to users: see the note at the top of `app-store-badge.data.ts`. |