Socket
Socket
Sign inDemoInstall

@contentful/f36-pagination

Package Overview
Dependencies
75
Maintainers
3
Versions
137
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @contentful/f36-pagination

Forma 36: Pagination component


Version published
Weekly downloads
18K
decreased by-12.29%
Maintainers
3
Install size
9.68 MB
Created
Weekly downloads
 

Readme

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

Last updated on 11 Apr 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc