Wallet Balance Card

A fanned stack of payment cards: picking one springs it to the front while the rest tuck behind, the balance rolls to the new amount and an eye toggle blurs the figures.

Try it: Click a card behind to bring it forward; toggle the eye.

Installation

Install with the shadcn CLI:

npx shadcn@latest add https://www.framekitui.live/r/wallet-balance-card.json

Or, with the @framekit namespace registered: npx shadcn@latest add @framekit/wallet-balance-card. You can also copy the source into components/ui/wallet-balance-card.tsx (view on GitHub).

Usage

import { WalletBalanceCard } from '@/components/ui/wallet-balance-card'

Props

Component props
PropTypeDefaultNotes
cardsWalletCard[]3 cards{ id, name, last4, balance, from, to }
currency / defaultIndexstring / number' / 0Currency and starting card.
classNamestring—Extra classes merged onto the root.

Dependencies

  • motion
  • lucide-react
  • Crypto Ticker Row

    A watchlist with live prices: each tick flashes the price green or red and fades back, mini sparklines morph to the new history and every row is a labelled button.

  • Contribution Heatmap Tile

    A weeks × days activity heatmap: cells pop in on a diagonal wave, the total and streak roll up, and the grid is one roving tab stop where arrows move a ring that announces the day.

  • Goal Progress Card

    A savings goal with a liquid progress bar: topping up springs the fill forward under a moving sheen, milestone ticks light as they pass and reaching the goal morphs the button into a check.

  • Spend Donut Card

    A radial spend breakdown whose rounded arcs sweep in one after another; hovering or focusing a category pops its arc outward and rolls the centre total to that amount.

  • Comparison Bar Card

    This period vs last as paired bars: a segmented control slides a pill between Week, Month and Year while bars re-grow on a spring, and hovering or focusing a pair lifts it with both values.

  • Sparkline KPI Tile

    A compact metric tile with a live dot, rolling numerals, a delta chip and a smooth sparkline that draws in, streams new points and shows a crosshair value on hover or ← →.

See all 13 Data Widgets components