AccountCard
Carte compacte affichant un compte : nom, institution, type, solde courant.
Source : src/components/ui/account-card.tsx
Props
Source : src/components/ui/account-card.tsx
| Prop | Type | Requis | Défaut | Description |
|---|---|---|---|---|
id | string | ✓ | — | — |
name | string | ✓ | — | — |
institution | string | ✓ | — | — |
type | string | ✓ | — | — |
balance | string | ✓ | — | — |
Exemple
<AccountCard
id="clxyz..."
name="Compte courant"
institution="BoursoBank"
type="CHECKING"
balance="3 245,80 €"
/>
Règles
balanceest une string déjà formatée parIntl.NumberFormatcôté serveur — jamais unnumberbrut- Le composant n'effectue aucun formatage numérique (single responsibility)
- Click = navigation vers
/accounts/[id]
Accessibilité
- Wrapper
<a>ou<Link>avecaria-labelcomposé (ex :"Compte courant — BoursoBank — solde 3 245,80 €") - Focus ring visible (voir Accessibilité)