Vue Awesome Paginate is a modern, lightweight, and highly customizable Vue.js 3 pagination library. It provides various pagination component types, supports full CSS customization, RTL, SEO-friendliness, and different localizations. Built with TypeScript and Vite, it offers full support for Vue.js 3.x and Nuxt.js 3.x applications. The current stable version is 1.2.0. The library aims for flexibility and ease of use, with all pagination functionalities built-in and zero external dependencies, making it a self-contained solution for adding pagination to web applications. It's suitable for projects requiring fine-grained control over pagination appearance and behavior without heavy external packages.
npm install vue-awesome-paginateVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to globally register Vue Awesome Paginate and integrate its component into a Vue 3 application, including basic usage with total items, items per page, current page binding, and a click handler. It also includes an example of custom CSS styling.
Ensure `import 'vue-awesome-paginate/dist/style.css';` is included in your main application entry point (e.g., `main.js` for Vue, `plugins/vue-awesome-paginate.js` for Nuxt).
Ensure your project is running Vue.js 3.x or Nuxt.js 3.x. For Vue 2 projects, you will need to find an alternative pagination library.
Declare `currentPage` using `const currentPage = ref(1);` in your `<script setup>` or `data` option. The `@click` handler should also be defined correctly as a function that accepts the page number.
In your `main.js` (Vue) or Nuxt plugin file, ensure you have `createApp(App).use(VueAwesomePaginate).mount('#app');` (for Vue) or `nuxtApp.vueApp.use(VueAwesomePaginate);` (for Nuxt).Verify correct global registration. For TypeScript, ensure your `shims-vue.d.ts` or similar declaration file includes types for globally registered components, or import the component directly if using a module-level import pattern (though global registration is standard for this library).
No dependency data recorded yet.