Paging

February 5, 2026 ยท View on GitHub

Paging is used to navigate med content pages

Usage

import { Paging } from "@docspace/ui-kit/components/paging";
<Paging
  previousLabel="Previous"
  nextLabel="Next"
  selectedPageItem={{ label: "1 of 1" }}
  selectedCountItem={{ label: "25 per page" }}
  previousAction={() => console.log("Prev")}
  nextAction={() => console.log("Next")}
  openDirection="bottom"
  onSelectPage={(a) => console.log(a)}
  onSelectCount={(a) => console.log(a)}
/>

Properties

PropsTypeRequiredValuesDefaultDescription
classNamestring---Accepts class
countItemsarray---Items per page combo box items
disableNextbool--falseSet next button disabled
disablePreviousbool--falseSet previous button disabled
idstring---Accepts id
nextActionfunction---Action for next button
nextLabelstring--NextLabel for next button
openDirectionstring-top, bottombottomIndicates opening direction of combo box
pageItemsarray---Paging combo box items
previousActionfunction---Action for previous button
previousLabelstring--PreviousLabel for previous button
selectedCountItemobject---Initial value for countItems
selectedPageItemobject---Initial value for pageItems
styleobj, array---Accepts css style