A simple template for previewing and printing A4 pages in Svelte. Perfect for creating documents, reports, or any content that needs to match A4 paper size exactly.
# Using degit
npx degit NotCoffee418/a4-in-svelte my-a4-project
# Or use GitHub's template feature
# Visit https://github.com/NotCoffee418/a4-in-svelte
# Click "Use this template" > "Create a new repository"
cd my-a4-project
npm install
routes/+page.svelte
:
```svelteContent for Page 1
Content for Page 2
Represents a single A4 page.
Props:
margin
(optional): Sets the page margins. Default is 20mm
Wrapper component that handles page layout and printing behavior.
To print your pages:
npm run dev
Visit localhost:5173 to see your pages.
MIT