Socket
Socket
Sign inDemoInstall

@contentful/f36-pagination

Package Overview
Dependencies
Maintainers
176
Versions
159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contentful/f36-pagination

Forma 36: Pagination component


Version published
Weekly downloads
19K
decreased by-11.49%
Maintainers
176
Weekly downloads
 
Created
Source

title: 'Pagination' status: 'stable' isNew: true slug: /components/pagination/ github: 'https://github.com/contentful/forma-36/tree/main/packages/components/pagination' storybook: 'https://f36-storybook.contentful.com/?path=/story/components-pagination' typescript: ./src/Pagination.tsx

Used to navigate between pages on a list.

Import

import { Pagination } from '@contentful/f36-components';
// or
import { Pagination } from '@contentful/f36-pagination';

Examples

Basic

When not using the total prop, it's necessary to pass to the component the isLastPage and the pageLength prop, so the Pagination component can render correctly.

With total number of items

When you know how many items in total there will be paginated on, you should pass that prop and the Pagination component will make all the calculations.

With view per page selector

With total and view per page selector

Props (API reference)

Content guidelines

  • onPageChange prop must update the list displayed to the user based on the page navigated to.

Accessibility

  • All the necessary a11y attributes are provided for the pagination elements.
  • Pass an aria-label to the Pagination to give more context to screen readers.

FAQs

Package last updated on 28 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc