Skip to content

sliver37/vue-tailwind-pagination

 
 

Repository files navigation

Vue Tailwind Pagination

build downloads-week downloads

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: 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

About

Vue Tailwind Pagination

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 62.9%
  • JavaScript 22.1%
  • TypeScript 9.9%
  • HTML 4.5%
  • CSS 0.6%