pagination 4.6.12
Install from the command line:
Learn more about npm packages
$ npm install @dusk-network/pagination@4.6.12
Install via package.json:
"@dusk-network/pagination": "4.6.12"
About this version
npm i -D @dusk-network/pagination
<script>
import Pagination from "@dusk-network/pagination";
import { data } from "./data.js";
import { writable } from "svelte/store";
const pageNumber = writable(1);
const items = data;
const itemsPerPage = 10;
</script>
<Pagination pageNumber="{pageNumber}" items="{items}" itemsPerPage="{itemsPerPage}" />