Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ocrvblockchain/vue-tailwind-pagination

Vue Tailwind Pagination
https://github.com/ocrvblockchain/vue-tailwind-pagination

css front-end pagination paging tailwind tailwind-css vue

Last synced: 5 days ago
JSON representation

Vue Tailwind Pagination

Awesome Lists containing this project

README

        

# Vue Tailwind Pagination

![build](https://github.com/OCRVblockchain/vue-tailwind-pagination/workflows/build/badge.svg?branch=main)
![downloads-week](https://img.shields.io/npm/dw/@ocrv/vue-tailwind-pagination)
![downloads](https://img.shields.io/npm/dt/@ocrv/vue-tailwind-pagination)

Vue component for creating Pagination using [Tailwind CSS](https://tailwindcss.com).

screenshot

## Install

```
npm install --save @ocrv/vue-tailwind-pagination
```

## Usage

1. Import library styles

```js
import '@ocrv/vue-tailwind-pagination/styles'
```

2. Import the components

```js
import VueTailwindPagination from '@ocrv/vue-tailwind-pagination'
```

Define base data

```js
export default {
name: 'Pagination Example',
components: {
VueTailwindPagination,
},
data() {
return {
currentPage: 1,
perPage: 5,
total: 20
}
}
}
```

Next, in your HTML code:

```html

```

More examples [here](https://github.com/OCRVblockchain/vue-tailwind-pagination/blob/main/src/components/Example.vue)