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