CD-11CardsNew, October 21, 2026
Page Flip
A book you turn by the corner. Drag a page over the spine or tap to turn it.
PROOnboarding Checklist and more like it are in Kokonut UI Pro
Installation
Page Flip is a free, open-source React component in the Kokonut UI Cards collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/page-flip.tsx, so the code is yours to change.
npx shadcn@latest add @kokonutui/page-flipOr add it by hand: install its packages, then copy the source from Copy code above into components/kokonutui/page-flip.tsx.
npm install motionUsage
import PageFlip from "@/components/kokonutui/page-flip";
export default function Example() {
return <PageFlip />;
}Props
pagesReactNode[]Default built-inPages in reading order. The first is the cover, alone on the right.
onSpreadChange(spread: number) => voidCalled with the spread index after a page settles.
classNamestringExtra classes for the root element.
Dependencies
| Needs | Version | Comes from |
|---|---|---|
motion | ^12.23.25 | npm, installed by the CLI |
cn from lib/utils.ts | shadcn init | |
| React | 19 | Your app |
| Tailwind CSS | 4 | Your app |
No provider, font or global CSS to set up: the file works as soon as it lands.

