1.0.0 • Published 2 years ago

@grixu/paginator v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

@grixu/paginate

It's simple pagination component & composable written in Vue 3, styled with WindiCSS.

Usage

<template>
  <NavPagination :paginator="paginator">
    <template #buttons="{ paginator }">
      You can customize buttons on the right side, or even do something completely different here, because you have 
      access, to whole paginator object!
    </template>
  </NavPagination>
</template>

<script setup>
import  {NavPagination, usePaginator } from '@grixu/paginator'

const someReactiveDataSource = ref([])
const perPage = ref(25)

const paginator = usePaginator(someReactiveDataSource, perPage)
</script>

Changelog

Please see CHANGELOG in each package for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.