Vue Component for Creating Pagination using Tailwind CSS

Vue Tailwind Pagination

Vue component for creating Pagination using Tailwind CSS.

screenshot

Install

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

Usage

  1. Import library styles
import '@ocrv/vue-tailwind-pagination/styles'
  1. Import the components
import VueTailwindPagination from '@ocrv/vue-tailwind-pagination'

Define base data

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

Next, in your HTML code:

<VueTailwindPagination :current="currentPage" :total="total" :per-page="perPage" @page-changed="current = $event"/>

More examples here

Download Details:

Author: OCRVblockchain

Source Code: https://github.com/OCRVblockchain/vue-tailwind-pagination

#vue #vuejs #javascript

Vue Component for Creating Pagination using Tailwind CSS
28.25 GEEK