0.0.4 • Published 3 years ago

@ocrv/vue-tailwind-pagination v0.0.4

Weekly downloads
124
License
MIT
Repository
github
Last release
3 years ago

Vue Tailwind Pagination

build downloads-week downloads

Vue component for creating Pagination using Tailwind CSS.

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: 5,
            total: 20
        }
    }
}

Next, in your HTML code:

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

        text-before-input="Idź do strony"
        text-after-input="Idź"/>

More examples here

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago