@freshworks/pagination
v0.15.1
Published
Introduces pagination for a component
Downloads
2,647
Maintainers
Keywords
Readme
@freshworks/pagination
yarn add @freshworks/pagination
Pagination is used when a large set of data needs to be displayed in a list or table across multiple pages. Nucleus Pagination provides a paginator with visual page numbers for navigation. The component also abstracts the calculation of the items that are displayed on the current page. The developer only needs to pass the total array of records to the pagination component.
Scenario
Pagination can be used to display the list of contacts, companies or tickets across multiple pages in the form of a table
Guidelines
Do's
Pagination should be used when a large set of content is displayed with tables or lists.
Though the number of items on a page can be altered, ensure that the default is reasonable.
Use Mini Pagination when the pagination is to be done inside a toolbar.
Dont's
Do not use pagination if the number of items is known to be less.
Do not override the actions and behaviour of pagination and paginator