كل المكوّنات
AppStoreBadge
١٢ تصدير٢ محور تنويع٨ خاصيّة٥ ملف
import { AppStoreBadge, AppStoreBadgeVariant, AppStoreEntry, AppStoreId } from '@nili/ui';لا توجد صفحة عرض شامل بعد
هذا المكوّن منشور ومُنمَّط بالكامل، لكن إطار العرض الشامل في Figma لم يُرسم بعد. تبويبا الكود والخصائص مكتملان.
AppStoreBadge
extends Omit<ComponentPropsWithoutRef<'a'>, 'children' | 'color'>, AppStoreBadgeVariantProps
محاور التنويع — من تعريف cva للمكوّن
| الخاصيّة | النوع | الافتراضي | ملاحظات |
|---|---|---|---|
| size | sm | md | lg | xl | md | |
| variant | original | black | white | original |
باقي الخصائص
| الخاصيّة | النوع | الافتراضي | ملاحظات |
|---|---|---|---|
| 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`. |