{"id":20663214,"url":"https://github.com/lombervid/vueginate","last_synced_at":"2026-03-09T12:06:39.820Z","repository":{"id":163298118,"uuid":"631038522","full_name":"lombervid/vueginate","owner":"lombervid","description":"A simple pagination component for Vue 3","archived":false,"fork":false,"pushed_at":"2025-09-10T16:19:44.000Z","size":153,"stargazers_count":8,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-11-22T20:12:35.968Z","etag":null,"topics":["pagination","pagination-component","vue-component","vue-pagination","vue3-component","vue3-pagination"],"latest_commit_sha":null,"homepage":"https://vueginate-demo.vercel.app","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lombervid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-04-21T19:06:31.000Z","updated_at":"2025-04-24T15:27:14.000Z","dependencies_parsed_at":"2024-01-08T08:57:00.000Z","dependency_job_id":null,"html_url":"https://github.com/lombervid/vueginate","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/lombervid/vueginate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lombervid%2Fvueginate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lombervid%2Fvueginate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lombervid%2Fvueginate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lombervid%2Fvueginate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lombervid","download_url":"https://codeload.github.com/lombervid/vueginate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lombervid%2Fvueginate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30294789,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T11:12:22.024Z","status":"ssl_error","status_checked_at":"2026-03-09T11:10:54.577Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pagination","pagination-component","vue-component","vue-pagination","vue3-component","vue3-pagination"],"created_at":"2024-11-16T19:16:58.998Z","updated_at":"2026-03-09T12:06:39.800Z","avatar_url":"https://github.com/lombervid.png","language":"Vue","funding_links":[],"categories":["Components \u0026 Libraries"],"sub_categories":["UI Utilities"],"readme":"\u003cdiv align=\"center\"\u003e\n\n[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/lombervid/vueginate?display_name=tag\u0026sort=semver)](https://github.com/lombervid/vueginate/releases/latest)\n[![npm](https://img.shields.io/npm/v/vueginate)](https://www.npmjs.com/package/vueginate)\n[![tests](https://github.com/lombervid/vueginate/actions/workflows/tests.yml/badge.svg)](https://github.com/lombervid/vueginate/actions/workflows/tests.yml?query=branch%3Amain)\n[![GitHub](https://img.shields.io/github/license/lombervid/vueginate)](https://github.com/lombervid/vueginate/blob/main/LICENSE)\n\n\u003c/div\u003e\n\n# Vueginate\n\n\u003e Pagination component for Vue 3\n\n**_Vueginate_** is a simple pagination component for Vue 3 applications. It includes out-of-the-box component variants for some of the most popular CSS Frameworks, such as [_Tailwind CSS_](https://tailwindcss.com/), [_Bootstrap_](https://getbootstrap.com/) (4 and 5) and [_Bulma_](https://bulma.io/).\n\n## ➜ [Demo](https://vueginate-demo.vercel.app/)\n\n## ➜ [Try it on StackBlitz](https://stackblitz.com/edit/vueginate?file=src%2FApp.vue)\n\n## Installation\n\n```sh\n# or `yarn add vueginate` | `npm install vueginate`\npnpm add vueginate\n```\n\n## Basic usage\n\n### Import the component\n\nImport the component and use it in your template.\n\n```html\n\u003cscript setup\u003e\n  import { reactive } from 'vue'\n  import { Vueginate } from 'vueginate'\n\n  const data = reactive({\n    totalItems: 86,\n    currentPage: 9,\n    itemsPerPage: 5,\n  })\n\u003c/script\u003e\n\n\u003ctemplate\u003e\n  \u003cVueginate\n    :total-items=\"data.totalItems\"\n    :current-page=\"data.currentPage\"\n    :items-per-page=\"data.itemsPerPage\"\n  /\u003e\n\u003c/template\u003e\n```\n\n\u003cdetails\u003e\n\u003csummary\u003eThe above example will generate a code similar to the following: (click to show)\u003c/summary\u003e\n\n```html\n\u003cnav aria-label=\"Page navigation\"\u003e\n  \u003cul class=\"vueginate-container\"\u003e\n    \u003cli\u003e\n      \u003ca class=\"vg-item vg-arrow\" href=\"#\"\u003e\n        \u003cspan class=\"sr-only\"\u003ePrev Page\u003c/span\u003e\n        \u003csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\"\u003e\n          \u003cpath\n            fill-rule=\"evenodd\"\n            d=\"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z\"\n            clip-rule=\"evenodd\"\n          /\u003e\n        \u003c/svg\u003e\n      \u003c/a\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n      \u003ca class=\"vg-item vg-page\" href=\"#\"\u003e1\u003c/a\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n      \u003cspan class=\"vg-item vg-disabled\"\u003e…\u003c/span\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n      \u003ca class=\"vg-item vg-page\" href=\"#\"\u003e7\u003c/a\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n      \u003ca class=\"vg-item vg-page\" href=\"#\"\u003e8\u003c/a\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n      \u003cspan class=\"vg-item vg-active\" aria-current=\"page\"\u003e9\u003c/span\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n      \u003ca class=\"vg-item vg-page\" href=\"#\"\u003e10\u003c/a\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n      \u003ca class=\"vg-item vg-page\" href=\"#\"\u003e11\u003c/a\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n      \u003cspan class=\"vg-item vg-disabled\"\u003e…\u003c/span\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n      \u003ca class=\"vg-item vg-page\" href=\"#\"\u003e18\u003c/a\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n      \u003ca class=\"vg-item vg-arrow\" href=\"#\"\u003e\n        \u003cspan class=\"sr-only\"\u003eNext Page\u003c/span\u003e\n        \u003csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\"\u003e\n          \u003cpath\n            fill-rule=\"evenodd\"\n            d=\"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z\"\n            clip-rule=\"evenodd\"\n          /\u003e\n        \u003c/svg\u003e\n      \u003c/a\u003e\n    \u003c/li\u003e\n  \u003c/ul\u003e\n\u003c/nav\u003e\n```\n\n\u003c/details\u003e\n\n### Events\n\n**_Vueginate_** triggers a `pageChange` event, passing a `number` parameter with the new page, every time the page changes.\n\n```html\n\u003cscript setup\u003e\n  // ...\n  function updateData(page: number) {\n    data.currentPage = page\n  }\n\u003c/script\u003e\n\n\u003ctemplate\u003e\n  \u003cVueginate\n    :total-items=\"data.totalItems\"\n    :current-page=\"data.currentPage\"\n    :items-per-page=\"data.itemsPerPage\"\n    @page-change=\"updateData\"\n  /\u003e\n\u003c/template\u003e\n```\n\n## Styling your component\n\n### Using default styles\n\n**_Vueginate_** includes a default styles you can import inside your script:\n\n```html\n\u003cscript setup\u003e\n  import 'vueginate/css/vueginate.css'\n\u003c/script\u003e\n```\n\nor from your style:\n\n```html\n\u003cstyle\u003e\n  /* or `@import 'vueginate/css/vueginate.css';` */\n  @import 'vueginate';\n\u003c/style\u003e\n```\n\n### Custom styles\n\nOr you can style your component based in the classes it provides:\n\n- `vueginate-container`: pagination container `ul`\n- `vg-item`: every item in the list\n- `vg-page`: any item that is not `...`, previous/next buttons, or the current page\n- `vg-active`: current page\n- `vg-arrow`: previous/next button\n- `vg-disabled`: used for `...` items and for previous button (when `currentPage === 1`) and next button (when `currentPage === totalPages`)\n\nAll classes are applied to the `a` (or `span` if disabled or active) element inside the `li`\n\n## Using with CSS Frameworks\n\n**_Vueginate_** includes component variants for _Tailwind_, _Bootstrap_ and _Bulma_. You can use them importing their respective component:\n\n```html\n\u003cscript setup\u003e\n  import { VueginateTailwind } from 'vueginate'\n  import { VueginateBootstrap } from 'vueginate'\n  import { VueginateBulma } from 'vueginate'\n\n  // ...\n\u003c/script\u003e\n\n\u003ctemplate\u003e\n  \u003cVueginateTailwind\n    :total-items=\"data.totalItems\"\n    :current-page=\"data.currentPage\"\n    :items-per-page=\"data.itemsPerPage\"\n  /\u003e\n\n  \u003cVueginateBootstrap\n    :total-items=\"data.totalItems\"\n    :current-page=\"data.currentPage\"\n    :items-per-page=\"data.itemsPerPage\"\n  /\u003e\n\n  \u003cVueginateBulma\n    :total-items=\"data.totalItems\"\n    :current-page=\"data.currentPage\"\n    :items-per-page=\"data.itemsPerPage\"\n  /\u003e\n\u003c/template\u003e\n```\n\n## Roadmap\n\n- [ ] Documentation\n- [x] Support to be able to change the default `ul` container to `div`\n- [x] Support to have a fixed size for the component\n\n## License\n\n[MIT](https://github.com/lombervid/vueginate/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flombervid%2Fvueginate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flombervid%2Fvueginate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flombervid%2Fvueginate/lists"}