BankCard
Shows a bank card and its limit.
When to use
- Bind only the last four digits. Never send the full number to the page.
Examples
Company card
Loading the example
<k:BankCard bank="Kor Bank" holder="Ada Yılmaz" last4="4821" expiry="09/29" scheme="BUSINESS" used="38250" limit="50000" currency="TRY" canFreeze="true"/>Colors
Loading the example
<k:Stack direction="grid" columns="2" gap="14"><k:BankCard bank="Kor Bank" last4="1102" tone="2"/><k:BankCard bank="Kor Bank" last4="7740" tone="3" frozen="true"/></k:Stack>API
Properties
| Name | Type | Default | Description |
|---|---|---|---|
bank | string | Bank or card name | |
holder | string | Card holder | |
last4 | string | Last four digits. Anything more is not shown | |
expiry | string | Expiry, MM/YY | |
scheme | string | Card network text | |
tone | int | 1 | Color, 1 to 5 |
used | float | 0 | Limit used |
limit | float | 0 | Limit. Zero hides it |
currency | string | Currency | |
frozen | boolean | false | Whether the card is frozen |
canFreeze | boolean | false | Whether to show the freeze button |
Events
| Name | Type | Description |
|---|---|---|
freeze | frozen: boolean | Freezing is changing. preventDefault stops it |