Book

Hover, tap, or press Enter. The cover swings open to reveal the pages.

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

BookCard props

PropTypeDefaultDescription
coverReactNodeFront of the cover.
leftReactNodeInside of the cover (left page).
rightReactNodeRevealed right page.
widthnumber170Width of the closed book in px.
heightnumber230Height of the book 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