A simple and customizable Vue.js pagination component.
npm i @xmehdi01/vue-pagination-component
<template>
<div>
<!-- Render your table here -->
<pagination-component
:items="items"
:per-page="perPage"
@page-changed="currentPage = $event"
/>
</div>
</template>
<script>
import PaginationComponent from "@xmehdi01/vue-pagination-component";
export default {
name: "App",
components: {
PaginationComponent,
},
data() {
return {
// Your data array goes here
items: [],
perPage: 3,
currentPage: 1,
};
},
};
</script>
This component is licensed under the MIT License.