@xmehdi01/vue-pagination-component
v1.0.0
Published
A simple and customizable Vue.js pagination component.
Downloads
21
Readme
vue-pagination-component 💫
A simple and customizable Vue.js pagination component.
Installation ⚙️
npm i @xmehdi01/vue-pagination-component
Component using 🚀
<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>
License 📝
This component is licensed under the MIT License.