Personal Checking
•••• 1234$5,432.10
Available
Feature-rich account card displaying account type, name, balance, trend indicator, and action buttons. Minimum 300x200px with elevation shadow and optional interactive states. Ideal for dashboard account overviews and financial summaries.
Available
<AccountCard
accountType="checking"
accountName="Personal Checking"
balance={5432.10}
accountNumber="1234"
/>Available
<AccountCard
accountType="savings"
accountName="Emergency Fund"
balance={12500.00}
accountNumber="5678"
trend="up"
trendValue="+2.5%"
action={{
label: 'Deposit',
onClick: () => console.log('Deposit'),
icon: 'add'
}}
/>Available
<AccountCard
accountType="credit"
accountName="Platinum Card"
balance={-1234.56}
accountNumber="9012"
trend="down"
trendValue="-15% from limit"
action={{
label: 'Pay Now',
onClick: () => console.log('Pay'),
variant: 'primary'
}}
secondaryAction={{
label: 'View Transactions',
onClick: () => console.log('View')
}}
/>Available
<AccountCard
accountType="investment"
accountName="Growth Portfolio"
balance={45678.90}
trend="neutral"
trendValue="0.0% today"
action={{
label: 'Trade',
onClick: () => console.log('Trade'),
variant: 'primary'
}}
secondaryAction={{
label: 'Reports',
onClick: () => console.log('Reports')
}}
/>Available
<AccountCard
accountType="checking"
accountName="Business Checking"
balance={25000.00}
accountNumber="3456"
trend="up"
trendValue="+$1,250"
onClick={() => alert('Card clicked - navigate to details')}
/>Available
Available
Available
<div style={{ display: 'grid', gridTemplateColumns: 'repeat(auto-fill, minmax(300px, 1fr))', gap: '16px' }}>
<AccountCard
accountType="checking"
accountName="Checking"
balance={5432.10}
trend="up"
trendValue="+$150"
/>
<AccountCard
accountType="savings"
accountName="Savings"
balance={12500.00}
trend="up"
trendValue="+2.5%"
/>
<AccountCard
accountType="credit"
accountName="Credit Card"
balance={-1234.56}
trend="down"
trendValue="-15%"
/>
</div>| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
accountType | 'checking' | 'savings' | 'credit' | 'investment' | 'loan' | — | Required | Type of account determining the icon displayed in the header |
accountName | string | — | Required | Display name of the account shown as h4 heading |
balance | number | — | Required | Account balance displayed in large xlarge size with bold weight |
accountNumber | string | — | — | Last 4 digits of account number shown as •••• 1234 in subdued caption text |
trend | 'up' | 'down' | 'neutral' | — | — | Trend direction showing balance change with directional arrow icon |
trendValue | string | — | — | Trend value text (e.g., "+2.5%" or "$150") displayed with trend icon |
action | { label: string; onClick: () => void; icon?: IconName; variant?: 'primary' | 'secondary' | 'naked' } | — | — | Primary action button with label, click handler, optional icon and variant |
secondaryAction | { label: string; onClick: () => void; icon?: IconName; variant?: 'primary' | 'secondary' | 'naked' } | — | — | Secondary action button (defaults to naked variant) with label and click handler |
currency | string | 'AUD' | — | Currency code for balance display (passed to MoneyDisplay component) |
onClick | () => void | — | — | Click handler making entire card interactive with hover, active, and focus states |
data-testid | string | — | — | Test identifier. Propagates to balance and action buttons with suffixes. |
General Notes:
Keyboard Navigation:
Screen Reader:
Color Contrast:
Focus Management:
Card container with header section, balance display, optional trend, and action buttons
Structure Diagram:
┌──────────────────────────────────────┐
│ Box (300x200 min) │
│ ┌──────────────────────────────────┐ │
│ │ StyledHeader │ │
│ │ ┌────┐ Account Name │ │
│ │ │Icon│ •••• 1234 │ │
│ │ └────┘ │ │
│ └──────────────────────────────────┘ │
│ │
│ ┌──────────────────────────────────┐ │
│ │ BalanceSection │ │
│ │ Balance (caption, subdued) │ │
│ │ $12,345.67 (xlarge, bold) │ │
│ │ ↑ +2.5% (xs icon + caption) │ │
│ └──────────────────────────────────┘ │
│ │
│ ┌──────────────────────────────────┐ │
│ │ StyledActions │ │
│ │ [Primary Button] [Secondary] │ │
│ └──────────────────────────────────┘ │
└──────────────────────────────────────┘
Component Parts: