pagination 4.5.6
Install from the command line:
Learn more about npm packages
$ npm install @dusk-network/pagination@4.5.6
Install via package.json:
"@dusk-network/pagination": "4.5.6"
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}" />