Skip to content
On this page

Pagination

A responsive and flexible pagination

Base


Show code

Slots

Show code

Class props


How does Class props inspector work?
Class propDescriptionPropsSuffixes
ellipsisClassClass of the pagination ellipsis .
🔍 Classes applied have a higher specificity than expected when mobileClass is applied
infoClassClass of the info in `simple` mode.simple
linkClassClass of the link button.
🔍 Classes applied have a higher specificity than expected when mobileClass is applied
linkCurrentClassClass of the current link.
linkDisabledClassClass of the disabled link.
listClassClass of the pagination list.
🔍 Classes applied have a higher specificity than expected when mobileClass is applied
mobileClassClass of pagination component when on mobile.
👉 Switch to mobile view to see it in action!
nextBtnClassClass of the next button.
🔍 Classes applied have a higher specificity than expected when mobileClass is applied
orderClassClass of the pagination order.ordercentered
right
left
prevBtnClassClass of the prev. button.
🔍 Classes applied have a higher specificity than expected when mobileClass is applied
rootClassClass of the root element.
roundedClassClass of the pagination when rounded.rounded
simpleClassClass of the pagination in `simple` mode.simple
sizeClassClass for the pagination size.sizesmall
medium
large


Props

Prop nameDescriptionTypeValuesDefault
ariaCurrentLabelstring-
ariaNextLabelstring-
ariaPageLabelstring-
ariaPreviousLabelstring-
currentCurrent page number, use v-model:current to make it two-way bindingnumber-1
iconNextIcon to use for next buttonstring-
From config

pagination: {
  iconNext: 'chevron-right'
}
iconPackIcon pack to usestringmdi, fa, fas and any other custom icon pack
iconPrevIcon to use for previous buttonstring-
From config

pagination: {
  iconPrev: 'chevron-left'
}
mobileBreakpointMobile breakpoint as max-width valuestring-
orderButtons order, optionalstringcentered, right, left
From config

pagination: {
  order: 'right'
}
overrideboolean-
perPageItems count for each pagenumber-
From config

pagination: {
  perPage: 20
}
rangeAfterNumber of pagination items to show after current pagenumber-1
rangeBeforeNumber of pagination items to show before current pagenumber-1
roundedRounded button stylesboolean-
simpleSimple styleboolean-
sizePagination size, optionalstringsmall, medium, large
totalTotal count of itemsnumber-

Events

Event namePropertiesDescription
update:active
change
update:current

Slots

NameDescriptionBindings
previous

next

default

Style

📄 Full scss file

CSS VariableSASS VariableDefault
--oruga-pagination-disabled-opacity$pagination-disabled-opacity$base-disabled-opacity
--oruga-pagination-ellipsis-color$pagination-ellipsis-color$grey-light
--oruga-pagination-link-border-color$pagination-link-border-color$grey-lighter
--oruga-pagination-link-border-radius$pagination-link-border-radius$base-border-radius
--oruga-pagination-link-border$pagination-link-border1px solid transparent
--oruga-pagination-link-color$pagination-link-color#363636
--oruga-pagination-link-current-background-color$pagination-link-current-background-color$primary
--oruga-pagination-link-current-border-color$pagination-link-current-border-color$primary // !!!
--oruga-pagination-link-current-color$pagination-link-current-color#fff
--oruga-pagination-link-height$pagination-link-height2.25em
--oruga-pagination-link-hover-border-color$pagination-link-hover-border-color$grey-light
--oruga-pagination-link-line-height$pagination-link-line-height$base-line-height
--oruga-pagination-link-margin$pagination-link-margin.25rem
--oruga-pagination-link-min-width$pagination-link-min-width2.25em
--oruga-pagination-link-padding$pagination-link-padding.5em .5em
--oruga-pagination-margin$pagination-margin-.25rem
--oruga-pagination-rounded-border-radius$pagination-rounded-border-radius$base-rounded-border-radius

Released under the MIT License.