| pages | ReactNode[] | any[] | [] | Page contents — React nodes, or any data when renderPage is used. Pages recycle to the back of the stack after a turn or tear. | No |
| renderPage | (page, index, { isTop, slot }) => ReactNode | undefined | Custom renderer for each page. meta.isTop marks the grabbable page, slot is the position in the stack (0 = top). | No |
| initialPage | number | 0 | Index of the page shown first. | No |
| width | number | 380 | Max page width in px. The diary is fluid below this. | No |
| aspectRatio | number | 0.78 | Page width / height. | No |
| stackDepth | number | 3 | Visible layers of the stack (1-6). | No |
| stackOffset | number | 4 | px each lower page peeks out at the bottom. | No |
| tilt | number | 0.5 | Max random tilt in degrees of the lower pages. | No |
| headroom | number | 0 | Fraction of the page height reserved above the spiral for the flipped-over page. 0 = the flipped page overlaps whatever sits above — do not put overflow-hidden on a parent. | No |
| theme | { page, pageBack, ink, lines, marginLine, hole, spiral, spiralShade } | DEFAULT_THEME | Merged over the exported DEFAULT_THEME. Set hole to the colour behind the diary so the punched holes look real. | No |
| radius | number | 6 | Page corner radius in px. | No |
| ruled | boolean | true | Show ruled lines. | No |
| ruleSpacing | number | 28 | px between ruled lines. Match your text line-height to this and text sits on the lines. | No |
| margin | boolean | true | Show the vertical margin line. | No |
| marginX | number | 52 | px of the margin line from the left edge. | No |
| texture | boolean | true | Subtle paper grain — generated once as a static noise tile. | No |
| stubHeight | number | 34 | px of the punched band at the top of each page. | No |
| ringSpacing | number | 22 | px between spiral rings / holes. | No |
| ringThickness | number | 4.5 | Spiral wire thickness in px. | No |
| contentPadding | string | derived from stubHeight and marginX | CSS padding string for page content. | No |
| contentClassName | string | "" | Extra classes for the content wrapper — fonts, text size, etc. | No |
| className | string | "" | Extra classes on the root element. | No |
| style | React.CSSProperties | undefined | Inline styles on the root element. | No |
| ariaLabel | string | "Spiral diary" | Accessible label. | No |
| grabZone | number | 0.4 | Fraction (0-1) of the page height, from the bottom, that can be grabbed. 1 = grab anywhere (page content stops being clickable); ~0.15 if pages contain inputs. | No |
| enableTurn | boolean | true | Allow dragging up to turn pages over the spiral. | No |
| enableTear | boolean | true | Allow dragging down to tear pages off the perforation. | No |
| foldThreshold | number | 0.33 | 0-1 — how far the curl must travel before release turns the page. | No |
| tearThreshold | number | 0.3 | Drag distance (fraction of page height) that tears the page free. | No |
| flick | number | 700 | px/s release speed that commits a turn or tear. | No |
| curlRadius | number | 26 | px roundness of the curl highlight. | No |
| maxFoldAngle | number | 30 | Degrees — how diagonal the curl may get. | No |
| tearAngle | number | 10 | Degrees the page swings while tearing. | No |
| peek | boolean | true | Hover corner-curl hint (mouse only). | No |
| peekSize | number | 26 | px size of the hover hint curl. | No |
| hint | boolean | true | Play the hint curl once after mount. | No |
| keyboard | boolean | true | Arrow/PageUp/PageDown turn pages, Delete tears. The diary root must be focused. | No |
| onTurn | (pageIndex: number) => void | undefined | Fires when a page is turned over the spiral. | No |
| onTear | (pageIndex: number) => void | undefined | Fires when a page is torn off. | No |
| onPageChange | (pageIndex: number) => void | undefined | Fires when the page on top changes — index into pages. | No |
| ref | React.Ref<{ next, prev, tear }> | undefined | Imperative handle: next() turns the top page over the spiral, prev() brings the last page back, tear() rips the top page off. | No |