Peel card

A card with a curling corner. Hover, focus or tap and it peels back to show what is underneath.

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

PeelCard props

PropTypeDefaultDescription
childrenReactNodeThe top face.
revealReactNodeWhat is hidden underneath.
widthnumber280Width of the card in px.
heightnumber340Height of the card in px.
peelnumber150How far the corner peels, in px.
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