Tüm bileşenler
CardProvider
15 export3 varyant ekseni9 prop5 dosya
import { CardProvider, CardProviderEntry, CardProviderId, CardProviderVariant } 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.
CardProvider
extends Omit<ComponentPropsWithoutRef<'span'>, 'children'>, Omit<CardProviderVariantProps, 'variant'>
Varyant eksenleri — bileşenin cva tanımından
| Prop | Tip | Varsayılan | Notlar |
|---|---|---|---|
| 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 |
Diğer proplar
| Prop | Tip | Varsayılan | Notlar |
|---|---|---|---|
| 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'`. |