pagination

Pagination

Lets the shopper move through numbered pages of results, with Previous and Next and, when there are many pages, the first and last page around an ellipsis. The current page is marked from the pagination's own page. In a container narrower than 28rem only the current page stays between Previous and Next, which drop their labels below 24rem.

Parts

PartFileDoes
PaginationPagination.vueGroups all parts of the pagination.
PaginationContentPaginationContent.vueLists the page numbers, ellipses and navigation buttons of the pagination.
PaginationEllipsisPaginationEllipsis.vueMarks pages that are skipped between the shown page numbers.
PaginationFirstPaginationFirst.vueLets the user jump to the first page.
PaginationItemPaginationItem.vueShows one page number in the list that the user can go to.
PaginationLastPaginationLast.vueLets the user jump to the last page.
PaginationLinkPaginationLink.vueLinks to a specific page and marks it when it is the current one.
PaginationNextPaginationNext.vueLets the user go to the next page.
PaginationPreviousPaginationPrevious.vueLets the user go to the previous page.

Anatomy

<Pagination>
  <PaginationContent>
    <PaginationFirst />
    <PaginationPrevious />
    <PaginationItem />
    <PaginationEllipsis />
    <PaginationNext />
    <PaginationLast />
  </PaginationContent>
</Pagination>

Styling

All of Pagination’s styles live in pagination.json. New to styling in Frontic UI? How styling works →

Install

Installs with it
button
npm packages
@lucide/vue
@vueuse/core
reka-ui

Built from

API reference

Pagination.vue

Groups all parts of the pagination. Renders a <nav>.

Props 11

PropTypeDefault
pagenumber—
defaultPagenumber1
itemsPerPage*number—
totalnumber0
siblingCountnumber2
disabledbooleanfalse
showEdgesbooleanfalse
asChildbooleanfalse
asAsTag | Component'nav'
classClassValue—
labelstring'Pagination'

Events 1

EventPayload
update:pagevalue: number

Slots 1

SlotSlot props
default{ page: number; pageCount: number; }

Recipe pagination 1 group

PaginationContent.vue

PaginationEllipsis.vue

PaginationFirst.vue

PaginationItem.vue

PaginationLast.vue

PaginationNext.vue

PaginationPrevious.vue
Pagination