# PaymentCard

> A drawn payment card face: the issuer's mark, a chip or a "Virtual" tag, the masked number, holder, expiry and network word, at the ID-1 card ratio.

```ts
import { PaymentCard } from "@sdxc/ui/finance";
```

Renders the card face. Sizes are in container units, so the same card fits a phone's
carousel and a desktop column, and the masked number never wraps.

## Examples

```tsx
<PaymentCard label="Everyday card ending 4821" brand="Tuppence" last4="4821" holder="Noor Halvorsen" expires="09/29" network="debit" />
```

```tsx
<PaymentCard label="Online card ending 0937" brand="Tuppence" last4="0937" holder="Noor Halvorsen" expires="03/27" network="debit" kind="virtual" tone="ink" frozen />
```

## Props

| Prop | Type | Description |
| --- | --- | --- |
| `label` | `string` | The card's accessible name, such as "Everyday debit card ending 4821". |
| `brand` | `RemixNode` | The issuer's mark or name, top left. |
| `last4` | `string` | The last four digits; the rest of the number is drawn as dots and never passed. |
| `holder` | `string` | The cardholder's name as printed. |
| `expires` | `string` | The expiry as printed, `MM/YY`. |
| `network` | `string` | The network or product word, bottom right, such as "debit". |
| `kind?` | `"physical" \| "virtual"` | `virtual` swaps the chip for a "Virtual" tag. @default "physical" |
| `virtualLabel?` | `string` | The tag a virtual card shows. @default "Virtual" |
| `tone?` | `"brand" \| "ink" \| "neutral"` |  |
| `frozen?` | `boolean` | Frosts the face and shows frozenLabel. @default false |
| `frozenLabel?` | `string` |  |
| `expiresLabel?` | `string` | The printed label before the expiry. @default "Exp" |

Also accepts everything in `Omit<TagProps<"div">, "children">`.


## Types

| Name | Values | What it decides |
| --- | --- | --- |
| `Tone` | `"brand" \| "ink" \| "neutral"` | The face's paint: the brand scale, near-black ink, or a light neutral metal. |
