Credit Card

Tilts with your pointer. Click or press Enter to flip it over.

Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.

CreditCard3D props

PropTypeDefaultDescription
numberstringShown as given, e.g. "•••• •••• •••• 4821".
namestringCardholder name printed on the card.
expiresstringExpiry date as text, e.g. "08/28".
cvvstring"•••"Security code shown on the back of the card.
brandstring"Depth Bank"Issuer name shown on the card.
widthnumber320Card width in px. Height follows the standard card ratio.
classNamestringExtra classes added to the outer element.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks