# Account Overview

> An animated account overview for React and shadcn, with a Hide balances option that blurs every figure.

Every account in one card: the total rolls on a range change while its trend morphs. Hide balances blurs every figure in place, so nothing reflows, and screen readers hear hidden instead.

- Tier: Eased Pro
- Interaction: Press
- Page: https://eased.dev/components/account-overview
- Installs: motion

## Install

Account Overview ships with Eased Pro (https://eased.dev/#pricing). Members add the `@eased-pro` registry with their token (https://eased.dev/account), then run:

```bash
npx shadcn add @eased-pro/account-overview
```

Every account in one card: a rolling total in the base currency, its trend, and a "Hide balances" toggle.

```tsx
import { AccountOverview } from "@/components/eased/account-overview/account-overview";

<AccountOverview
  accounts={accounts}
  rates={{ EUR: 1.0842, GBP: 1.2718 }}
  history={totals}
  delta={0.029}
  caption="past 30 days"
  actions={<Segmented aria-label="Range" options={ranges} value={range} onValueChange={setRange} />}
/>
```

## Props

| Prop | Type | Default | |
|---|---|---|---|
| `accounts` | `OverviewAccount[]` | | `{ id, name, currency, balance, last4? }`. |
| `baseCurrency` | `string` | `"USD"` | The total's currency. |
| `rates` | `Record<string, number>` | `{}` | Base units per unit of each account currency. |
| `history` | `number[]` | | The total over the range, oldest first. |
| `delta` / `caption` | `number` / `string` | | Change over the range as a ratio; the comparison. A fall is warning, never danger. |
| `actions` | `ReactNode` | | Trailing slot on the total's row. |
| `hidden` / `defaultHidden` / `onHiddenChange` | `boolean` | `false` | "Hide balances". |
| `locale` | `string` | runtime | |

**Motion signature:** rows rise once; a range change rolls the total and delta while the trend morphs; hiding balances blurs every figure in place (8px, 200ms) so nothing reflows, and the eye's slash draws in. Reduced motion: the blur and numbers change at once.
