BankCard

Una representación visual de una tarjeta bancaria o tarjeta de crédito, comúnmente utilizada en interfaces de facturación y pago.

Ejemplo de Uso

ACME
Cardholder Name
John Doe
Expiry Date
12/24
************1234
VISA
Global Bank
Cardholder Name
Jane Smith
Expiry Date
11/25
************5678
Travel Rewards
Cardholder Name
Alice Lee
Expiry Date
10/26
**********9012
AMEX
Tech Credit
Cardholder Name
Bob Jones
Expiry Date
09/27
************3456

Cómo Utilizar

Para usar el componente BankCard, impórtalo desde su ubicación y pasa las propiedades requeridas.

astro
---
import BankCard from '@/components/data-display/BankCard.astro';

---
<BankCard variant="dark" type="visa" cardholder="John Doe" cardNumber="**** **** **** 1234" expiry="12/24" />

Referencia de la API

Propiedad
Descripción
Tipo
Por defecto

cardholder

The name of the cardholder. string -

cardNumber

The bank card number. Will be automatically spaced into groups of 4. string -

expiry

The expiration date of the card (e.g., "12/24"). string -

type

The card brand logo indicator. "visa" | "mastercard" | "amex" | "generic" "generic"

companyName

The name of the issuing bank or company. string "ACME"

variant

The visual style variant of the card. "dark" | "light" | "gradient" | "brand" "dark"

class

Additional CSS classes to apply to the card container. string -