kor TürkçeGitHub

BankCard

Shows a bank card and its limit.

kor/ui/BankCardSource

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

NameTypeDefaultDescription
bankstringBank or card name
holderstringCard holder
last4stringLast four digits. Anything more is not shown
expirystringExpiry, MM/YY
schemestringCard network text
toneint1Color, 1 to 5
usedfloat0Limit used
limitfloat0Limit. Zero hides it
currencystringCurrency
frozenbooleanfalseWhether the card is frozen
canFreezebooleanfalseWhether to show the freeze button

Events

NameTypeDescription
freezefrozen: booleanFreezing is changing. preventDefault stops it

Related

StatementInstallments