Content per page
The render prop of Text and View is a snippet in Svelte, given the page:
<Footer>
<Text>
{#snippet render(page)}Page {page.pageNumber} of {page.totalPages}{/snippet}
</Text>
</Footer>
In a component inside that snippet, usePage() gives the page, while the component is created.
The snippet's content gets the contexts of the components around the element. <PageNumber> and
<TotalPages> are simpler where they do.
Synced from packages/svelte/GUIDE.md in the inkoxide repository.