SearchCtrlK

  • ↑↓navigate
  • ↵open
  • escclose

Can’t find it? Contact us

PaymentCard

A drawn payment card face.

Tuppence
ending 4821
Noor HalvorsenExp09/29debit
TuppenceVirtual
ending 0937
Noor HalvorsenExp03/27debit
View code
tsx
<PaymentCard label="Everyday card ending 4821" brand="Tuppence" last4="4821"
	holder="Noor Halvorsen" expires="09/29" network="debit" />
<PaymentCard label="Online card ending 0937" brand="Tuppence" last4="0937"
	holder="Noor Halvorsen" expires="03/27" network="debit" kind="virtual" tone="ink" frozen />

Installation

An ordinary dependency: install it, import the theme once, and import the component where it is used.

Terminal
npm add @sdxc/ui remix
typescript
import "@sdxc/ui/theme.css";

Usage

typescript
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="Online card ending 0937" brand="Tuppence" last4="0937" holder="Noor Halvorsen" expires="03/27" network="debit" kind="virtual" tone="ink" frozen />

Props

Read from the component's own types, so every prop, every default and every allowed value is listed.

PropTypeRequiredDescription
labelstringYesThe card's accessible name, such as "Everyday debit card ending 4821".
brandRemixNodeYesThe issuer's mark or name, top left.
last4stringYesThe last four digits; the rest of the number is drawn as dots and never passed.
holderstringYesThe cardholder's name as printed.
expiresstringYesThe expiry as printed, MM/YY.
networkstringYesThe network or product word, bottom right, such as "debit".
kind"physical" | "virtual"Novirtual swaps the chip for a "Virtual" tag. @default "physical"
virtualLabelstringNoThe tag a virtual card shows. @default "Virtual"
tone"brand" | "ink" | "neutral"No
frozenbooleanNoFrosts the face and shows frozenLabel. @default false
frozenLabelstringNo
expiresLabelstringNoThe printed label before the expiry. @default "Exp"

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

Types

NameValuesWhat it decides
Tone"brand" | "ink" | "neutral"The face's paint: the brand scale, near-black ink, or a light neutral metal.
@sdxc/ui

Can’t find it? Contact us