npm installnpm run dev
React, Vite, TypeScript, Paged.js, Tailwind CSS
This is a barebones starter template for using Paged.js with React. It includes Tailwind CSS and TypeScript, making it easy to build a custom component architecture for complex, print-ready documents.
For a fully styled version with a collection of ready-made components, see below:
App.tsx– Entry point that imports bothBook.tsxandLayouter.tsxBook.tsx– Contains your document structure: components, chapters, and textLayouter.tsx– Renders theBook.tsxand appliesprint.cssfor paged stylingprint.css– Contains styles specific to Paged.js (warnings may appear, but can be ignored)index.css– Use this file for theme variables, fonts, and general styling
To print your document, use the browser’s print dialog (Cmd + P / Ctrl + P).
Paged.js supports additional features like bleed margins and cutting guides.

