Book 3D

A 3D book that turns toward you and swings its cover open.

no dependenciesMIT · free

Chapter 1. Motion should explain, not decorate…

Free guideThe Motion Handbook

How a tiny roastery tripled online orders.

Case studyCoral Coffee

Installation

npx shadcn@latest add https://ombakui.com/r/book-3d.json

Usage

import { Book3D } from "@/components/book-3d";

<Book3D cover={<h3 className="p-5 text-white">The Motion Handbook</h3>} page={<p>Chapter 1…</p>} />

Props

PropTypeDefaultDescription
cover*ReactNode–Cover content (title, image…).
pageReactNode–First page, revealed when the cover opens.
colorstring"#0e7fbf"Cover color behind your content.
thicknessnumber22Book thickness in px.
classNamestring"h-64 w-48"Size classes.