# Vue Pagination Headless [![Version](https://img.shields.io/npm/v/%40asika32764/vue-pagination.svg?style=flat-square)](https://www.npmjs.com/package/@asika32764/vue-pagination) [![License](https://img.shields.io/npm/l/%40asika32764/vue-pagination.svg?style=flat-square)](LICENSE) Headless and non-style pagination for Vue 3. [DEMO](https://about.asika.tw/vue-pagination/) * [Vue Pagination](#vue-pagination) * [Installation](#installation) * [Getting Started](#getting-started) * [Create A Simple Pagination](#create-a-simple-pagination) * [Parameters](#parameters) * [Max Items](#max-items) * [Page Route and LinkTag](#page-route-and-linktag) * [Page Click](#page-click) * [Custom Slots](#custom-slots) * [Page Icons and Numbers](#page-icons-and-numbers) * [Page Items](#page-items) * [Custom UI by Composable](#custom-ui-by-composable) * [Interfaces](#interfaces) * [Props](#props) * [Events](#events) * [Slots](#slots) * [Contribution](#contribution) ## Installation ```shell npm i @asika32764/vue-pagination --save # OR yarn add @asika32764/vue-pagination ``` ## Getting Started Use bundler and Vue SFC: ```vue ``` Include JS file. ```html ``` ES Module ```html ``` ### Create A Simple Pagination ```vue ``` You will see a pagination with empty style. ![](https://github.com/user-attachments/assets/9779f24e-5b7f-4588-ab35-a5e3eb49b4b8) This is an example for Bootstrap style: ```vue ``` ![](https://github.com/user-attachments/assets/804df744-c905-46fb-97a0-d17aa981b1e8) You could add your own class or style to this pagination components for every UI framework. ## Parameters ### Max Items Configure max items shows on pagination, default is `5`: ```vue ``` The example that we limit it only 3 items one time: ![](https://github.com/user-attachments/assets/a7d1907b-c463-4fd3-8fd6-dd310b4a704c) ### Page Route and LinkTag Simply add route parameter to create link for every page items: ```vue ``` The return value can be a string for `` or any types. You can customize the link tag by: ```vue ``` The accepted `link-tag` value includes: - `a` => Page item will be `` link and route will be `href` attribute. - `button` => Page item will be `