Early accessFull site coming soon. Pro is $49.99 a year. See pricing ›

Nexus UI

Wallet Stack, animated React component

Payment cards tucked into a leather wallet, each peeking out a little higher than the one in front. Picking a card slides it out while the others sink, then turns it over in 3D to show the back; picking it again puts it away.

  • Pro
  • Cards
  • Hover
  • Spring
  • 3D

Play with it

Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.

Pick a card.

Props

PropTypeDefaultWhat it does
cardsDEFAULT_WALLET_CARDSCards from back to front, each { id, name, last, bg, ink, brand, expires? }. Four fit best.
label"Wallet"Word stamped on the wallet; also the group's accessible name.
hint"Pick a card."Hint under the wallet. An empty string hides it.
onSelect—Called with the card id when one slides out, and null when it is put back.
autoplayfalseTakes each card out, flips it and puts it back in turn until someone touches it.
className—Extra classes for the root.