Skip to content
Inkoxide

Search covers every page and heading of the docs. Use ↑ ↓ and ↵.

Content per page

Edit this page

The render prop of Text and View is a slot in Vue, given the page:

<Footer>
  <Text>
    <template #render="{ pageNumber, totalPages }">Page {{ pageNumber }} of {{ totalPages }}</template>
  </Text>
</Footer>

In a component inside that slot, usePage() gives the page. The slot's content gets what the components around the element provide. <PageNumber> and <TotalPages> are simpler where they do.

Synced from packages/vue/GUIDE.md in the inkoxide repository.