همهی کامپوننتها
AppStoreBadge
۱۲ اکسپورت۲ محور واریانت۸ پراپ۵ فایل
import { AppStoreBadge, AppStoreBadgeVariant, AppStoreEntry, AppStoreId } from '@nili/ui';هنوز صفحهی نمای کلی ندارد
این کامپوننت منتشر شده و تایپ کاملی دارد، ولی فریم نمای کلیاش در فیگما هنوز کشیده نشده. تب کد و پراپها کاملاند.
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`. |