BankCard

청구 및 결제 인터페이스에서 일반적으로 사용되는 은행 카드 또는 신용 카드의 시각적 표현입니다.

사용 예

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

사용 방법

BankCard 컴포넌트를 사용하려면 해당 위치에서 가져와 필요한 속성을 전달하세요.

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

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

API 참조

속성
설명
타입
기본값

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 -