Flip Checkout Card
Frosted payment card mirrors every keystroke, flips for the security code, and the checkout condenses into a receipt once paid.
Try it: Type card details — focus the security code to flip; Pay to finish.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/flip-checkout-card.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/flip-checkout-card. You can also copy the source into components/ui/flip-checkout-card.tsx (view on GitHub).
Usage
import { FlipCheckoutCard } from '@/components/ui/flip-checkout-card'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
amount | number | 129 | Charge amount. |
currency | string | 'USD' | ISO currency for formatting. |
merchant | string | 'Atelier Nine' | Payee shown in form and receipt. |
issuer | string | 'Lumen' | Name printed on the card face. |
onPay | (details) => Promise<unknown> | void | — | Async payment; rejecting shows a decline message. |
Dependencies
motionlucide-react
Related Cards components
- Book Spine Shelf
A shelf of generated book spines: the hovered book slides out while neighbours lean away, and choosing one swings its cover open on a hinge into a reading card with an optional ribbon. Arrow keys…
- Gravity Expand Card
Click expands with spring; collapse on second click/outside.
- Mesh Project Cards
Project cards headed by a living mesh gradient — drifting blurred blobs with film grain — and a status pill that pulses for live and in-progress work. Cards tilt toward the pointer with a travelling…
- Liquid Morph Card
Border/blob morphs toward pointer.
- Sticky Card Stack
Project cards that pin one over the next like a deck being dealt — each card shrinks back and dims as the following one slides up over it, still peeking out by a few pixels. Scroll-driven with…
- Hologram Flip Card
Flip to holographic rear with iridescent sheen.