remold/ui

Wallet

A leather card holder with three cards in it: tap it and the cards slide up and fan out, choose one and it rises to the top while its latest transactions fill in underneath, as Apple Wallet does.

MotionBase UI

Things to try

  • Tap the holder. The cards slide up out of the front pocket, fanned so you can read each one, still tucked in at the bottom. Tap again and they slip back in.
  • Choose a card. It rises to the top while the holder sinks out of the way, and its latest transactions arrive row by row in the space between.
  • Make it your default. Flip the switch and the Default badge moves over to it.

Install

npx shadcn@latest add https://your-docs-site/r/wallet-stack.json

Dependencies

The install command adds these for you. If you copy the code by hand, install them yourself.

npm install @base-ui/react @remold-ui/react motion

How it works

  • Springs, a beat apart. Every card and the holder are placed by Motion springs, staggered slightly, so each change reads as one movement rather than a jumble.
  • Drawn leather. The holder is SVG: a pebbled grain from a noise filter, a burnished edge and close stitching. Nothing is an image.
  • The default-card switch is Base UI's Switch.
The cards and transactions are made up.

On this page