An open book with pages that turn like paper. Click a page, use the buttons or the arrow keys.
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 |
|---|---|---|---|
| pages | ReactNode[] | Page contents. Pages come in pairs: front and back of each leaf. | |
| pageWidth | number | 200 | Width of one page in px. |
| pageHeight | number | 280 | Height of one page in px. |
| className | string | Extra classes added to the outer element. |