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.
| Prop | Type | Default | Description |
|---|---|---|---|
| cover | ReactNode | Front of the cover. | |
| left | ReactNode | Inside of the cover (left page). | |
| right | ReactNode | Revealed right page. | |
| width | number | 170 | Width of the closed book in px. |
| height | number | 230 | Height of the book in px. |
| className | string | Extra classes added to the outer element. |