All components
AppStoreBadge
12 exports2 variant axes8 props5 files
import { AppStoreBadge, AppStoreBadgeVariant, AppStoreEntry, AppStoreId } from '@nili/ui';No overview page yet
This component ships and is fully typed, but the library has not drawn its Figma overview frame yet. The Code and Props tabs are complete.
AppStoreBadge
extends Omit<ComponentPropsWithoutRef<'a'>, 'children' | 'color'>, AppStoreBadgeVariantProps
Variant axes — from the component’s cva definition
| Prop | Type | Default | Notes |
|---|---|---|---|
| size | sm | md | lg | xl | md | |
| variant | original | black | white | original |
Other props
| Prop | Type | Default | Notes |
|---|---|---|---|
| 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`. |