# Vue Pagination Headless
[](https://www.npmjs.com/package/@asika32764/vue-pagination)
[](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.

This is an example for Bootstrap style:
```vue
```

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:

### 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 `