All components
CardProvider
15 exports3 variant axes9 props5 files
import { CardProvider, CardProviderEntry, CardProviderId, CardProviderVariant } 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.
CardProvider
extends Omit<ComponentPropsWithoutRef<'span'>, 'children'>, Omit<CardProviderVariantProps, 'variant'>
Variant axes — from the component’s cva definition
| Prop | Type | Default | Notes |
|---|---|---|---|
| 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 |
Other props
| Prop | Type | Default | Notes |
|---|---|---|---|
| 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'`. |