كل المكوّنات
CardProvider
١٥ تصدير٣ محور تنويع٩ خاصيّة٥ ملف
import { CardProvider, CardProviderEntry, CardProviderId, CardProviderVariant } from '@nili/ui';لا توجد صفحة عرض شامل بعد
هذا المكوّن منشور ومُنمَّط بالكامل، لكن إطار العرض الشامل في Figma لم يُرسم بعد. تبويبا الكود والخصائص مكتملان.
CardProvider
extends Omit<ComponentPropsWithoutRef<'span'>, 'children'>, Omit<CardProviderVariantProps, 'variant'>
محاور التنويع — من تعريف cva للمكوّن
| الخاصيّة | النوع | الافتراضي | ملاحظات |
|---|---|---|---|
| variant | original | mono | outline | original | `original` is full colour, `mono` single colour, `outline` a stroked outline — the three treatments the schemes publish. |
| size | xs | sm | md | lg | xl | 2xl | md | |
| framed | 'true' | 'false' | false |
باقي الخصائص
| الخاصيّة | النوع | الافتراضي | ملاحظات |
|---|---|---|---|
| children | ReactNode | — | |
| aria-label | string | — | |
| provider* | CardProviderId | (string & {}) | — | Which scheme. `CARD_PROVIDER_IDS` is the list; an unknown id falls back to `generic`, the neutral card glyph. |
| label | string | — | Accessible name. Defaults to the scheme name, because a row of accepted cards is usually *only* logos and the names are the content. Pass `''` when the name is already written beside the mark. |
| basePath | string | — | Override the asset origin for this one mark. See `setAssetBasePath()`. |
| loading | lazy | eager | lazy | Defaults to `'lazy'`. |