0Views
0Copies

API Reference
Props for <TokenPaymentCard />
| Prop | Type | Default | Description |
|---|---|---|---|
| chipLight | string | "#f3dfa0" | The bright tone of the chip. |
| chipDark | string | "#cfae5c" | The deep tone of the chip. |
| chipLine | string | "#8a6d2a" | The chip’s engraved lines. |
| shadowColor | string | "rgba(3, 48, 34, 0.75)" | The soft shadow under the card. |
| cards | Array<{ kind, holder, expiry, number, token, from, via, to, midpoint, textColor, tokenColor, waveColor, edgeColor }> | [{"kind":"Debit","holder":"Tomás Reyes","expiry":"03/28","number":"5301 7748 2096 5518","token":"tkR3 vZ8c 1nWq 6hYb","from":"#12835a","via":"#0a6346","to":"#042b20","midpoint":50,"textColor":"#f2fff8","tokenColor":"#8dffce","waveColor":"rgba(141, 255, 206, 0.16)","edgeColor":"rgba(141, 255, 206, 0.22)"},{"kind":"Credit","holder":"Lena Vogt","expiry":"11/30","number":"6011 4402 9375 1286","token":"tk0D 7sPa Mm4X e2Kt","from":"#ffffff","via":"#eef8f2","to":"#cfe6da","midpoint":55,"textColor":"#06291b","tokenColor":"#056a42","waveColor":"rgba(5, 106, 66, 0.16)","edgeColor":"rgba(5, 106, 66, 0.2)"}] | The cards it works through, one after another; one card alone flips round to itself. |
| brand | string | "Keyshard" | The name beside the logo; empty hides it. |
| logo | string | — | An image instead of the built-in mark. |
| numberLabel | string | "Card number" | The label over the card number. |
| tokenLabel | string | "Token · reversible only in vault" | The label over the token. |
| holderLabel | string | "Card holder" | The label over the holder’s name. |
| expiryLabel | string | "Valid thru" | The label over the date. |
| font | FontValue | {"fontFamily":"Instrument Sans","fontWeight":600} | The brand and holder’s names; the weight is the brand’s. The component doesn’t load the font: add it to your app. |
| monoFont | FontValue | {"fontFamily":"Azeret Mono","fontWeight":500} | The number, date and labels; the weight is the number’s and date’s. Add the font to your app. |
| width | number | 376 | The widest the card gets; it shrinks to fit a smaller parent and everything on it scales along. |
| radius | number | 20 | Corner radius. |
| padding | number | 7.75 | Space inside the left and right edges, as a share of the card’s width. |
| numberSize | number | 6.25 | Size of the number, as a share of the card’s width. |
| waveCount | number | 14 | How many engraved wave lines; 0 hides them. |
| waveHeight | number | 13 | How tall the waves are. |
| tilt | number | 9 | How far the card leans toward the pointer; 0 turns it off. |
| numberHold | number | 2 | How long the card number stays before it scrambles. |
| tokenHold | number | 4.3 | How long the token stays before the card flips. |
| stagger | number | 70 | Gap between one digit starting to scramble and the next. |
| scramble | number | 360 | How long each digit shows its glyph. |
| flip | number | 320 | How long each half of the flip takes. |
| autoplay | boolean | true | Plays the cards in turn; off, the first card rests on its token. |
| showLogo | boolean | true | The built-in mark, or your logo. |
| showChip | boolean | true | The contact chip. |
| showContactless | boolean | true | The contactless waves beside the chip. |
| glyphs | string | "#%&$@*+=?!/<>" | The characters a digit flickers through on its way to the token. |
| gradientAngle | number | 140 | Direction of the finish’s gradient. |
| sheen | number | 22 | Strength of the light falling across the top-left corner. |
| tiltStiffness | number | 140 | How fast the lean follows the pointer. |
| tiltDamping | number | 18 | How little the lean wobbles as it settles. |
- Category
- Cards
- Framework
- React
- Published
- Nov 20, 2026
- Dependencies
- Variants
Token Payment Card
A payment card whose number scrambles, digit by digit, into a token, then flips over to the next card and starts again. It leans toward the pointer. The cards’ text and finishes, engraved waves, chip, fonts, size and timing can all be set.