Back to components
ComponentCardFree

Flip Box React component

A photo card that turns over in 3D to show its details, flipping away from whichever edge the pointer came in from, with a priced feature list and call to action on the back, tap and keyboard support and a reduced-motion fallback.

About the Flip Box component

Flip Box is a photo card with a second side. The front sells the idea with a picture and a title; turning it over shows what someone actually needs to decide: what's included, what it costs and a button to act on it.

With the default axis it flips away from whichever edge the pointer came in from, so moving in from the left turns it one way and coming down from the top tips it the other. On touch screens a tap turns it over, and keyboard users can flip it with Enter and land straight on the back.

When to use it

Use it for service or package cards, team members with a short bio on the back, product teasers, or anywhere a picture should come first and the details second.

Keep anything people must see without interacting on the front; the back is a reveal, not the only place for critical information.

Installation

Add the Flip Box component to your project with the shadcn CLI. It lands in components/flip-box.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/flip-box

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install lucide-react clsx tailwind-merge

More Card components

Image Box
Free
Focus Frame
Pixelate Hover Card
Free
Sticky Scroll Reveal
Card Shuffle Stack
Free
Scroll Card Stack