CSS class name for the flipbook container
OptionalcoverAspect ratio for cover boards (slightly larger than leaf). The delta between cover and leaf aspect ratios determines the visible frame. Default: { width: 2.15, height: 3.15 }
OptionalcoverConfiguration for cover pages (front and back covers).
OptionaldebugEnable debug mode
OptionaldirectionReading direction: 'ltr' (left-to-right) or 'rtl' (right-to-left)
OptionaldownloadDownload configuration: entire book and page-range handlers plus filename hints. Toolbar's DownloadDropdown reads this from the flipbook ref.
OptionalenableWhen false, download is disabled (getDownloadConfig returns undefined). When true or omitted, the provided downloadConfig is used; there is no default implementation. See base FlipBookOptions and issue #168.
OptionalenableWhen false, history integration is disabled. When true or omitted, the provided historyMapper is used; there is no default implementation. See base FlipBookOptions and issue #168.
OptionalfastVelocity threshold (px/s) for fast swipe to complete flip. Default: 500
OptionalhandlersEvent handlers. Use this to pass callbacks (e.g. onPageFlipped) instead of top-level props.
OptionalhistoryWhen set, syncs the flip-book with browser history: pushState on flip, restore page on back/forward. Default: undefined.
OptionalinitialIndices of leaves that should start in the turned (flipped) state
OptionalleafAspect ratio for inner pages (text block leaves). Default: { width: 2, height: 3 }
OptionalleavesNumber of leaves to keep rendered before and after the current position. When set, only leaves within the buffer range are visible for performance. Default: undefined (all leaves are always rendered)
OptionalofOverride for the "of" part of the page indicator (e.g. a gematria letter for the total, like "נ" for 50 in Hebrew books). Defaults to total pages count when not set.
Array of React elements to render as pages
OptionalpageDefine which pages are covers for special styling
OptionalpageWhen false, disables the inner page shadow/highlight (e.g. to avoid flicker with multiple books). Default: true.
OptionalsnapshotWhen true, uses aggressive containment on pages during flip animations so the browser can operate on a cached GPU texture rather than re-rendering content every frame. Reduces jank when flipping rapidly. Default: true.
OptionaltocTable of contents page index (book-level). Populates the store used by goToToc command and TocButton. Default: 4.
Props for the FlipBook React component.