Connor Adams · Design System

finance

AccountCard

Example

Import

import { AccountCard } from '@connor-adams/designsystem'

Usage

A tile for a connected account in lists and the accounts grid.

<AccountCard name="Amex Cobalt" institution="Amex" mask="3001" kind="credit" balance={-1284.5} status="synced" />
<AccountCard name="TD Chequing" institution="TD" mask="8842" kind="chequing" balance={6240.18} status="synced" onClick={open} selected />

kind tints the chip and relabels credit as "owing". status="synced|syncing|error". Pass onClick for a selectable button.

Props

PropTypeDefaultDescription
name*ReactNode
institutionstring | undefined
maskstring | undefined
balancenumber | undefined0
currencystring | undefinedCAD
localestring | undefineden-CA
kind"default" | "chequing" | "savings" | "credit" | "investment" | "cash" | undefineddefault
status"error" | "synced" | "syncing" | undefined
selectedboolean | undefinedfalse
onClick(() => void) | undefined