Skip to content
caliper ui pro docs

Wallet stack

Cards stacked like a wallet, with the front card expanded.

Pro

When to use

  • Showing payment methods or passes.

When not to use

  • Many cards.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/wallet-stack

Adds its 2 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

WalletStack

6 props
PropTypeDefault
label *string—
cards *readonly WalletStackCard[]—
valuestring | null—
defaultValuestring | nullnull
onValueChange((id: string | null) => void)—
classNamestring—

Keyboard

Escape
Closes or cancels, then returns focus to where it came from.

Accessibility

It exposes list and listitem semantics, with aria-label, aria-expanded and aria-hidden kept in step with state.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/wallet-stack.md

The index of every part is at /llms.txt.

More in Stacks