Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@times-components/pagination

Package Overview
Dependencies
Maintainers
0
Versions
618
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@times-components/pagination

The pagination package provides a pagination user interface (UI) and pagination state Higher Order Component (HOC). These two exports are both required for pagination to work. This package is currently only used by article list pages (author profile and t

  • 3.13.20
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
283
increased by1.07%
Maintainers
0
Weekly downloads
 
Created
Source

Pagination

The pagination package provides a pagination user interface (UI) and pagination state Higher Order Component (HOC). These two exports are both required for pagination to work. This package is currently only used by article list pages (author profile and topics) for the web.

UI

The <Pagination /> component provides a pagination UI for web. The user can see what page they are on, and can navigate to other pages with the next and previous buttons. This UI component ships with its own tracking handling.

State management with a HOC

withPageState is a HOC pagination helper that manages the state of the pagination. It maintains what page the user is currently on. Typically this is passed a component that consumes the Pagination component itself.

Usage

withPageState(authorProfileTrackingContext(AuthorProfile));

Contributing

Please read CONTRIBUTING.md before contributing to this package

Running the code

Please see our main README.md to get the project running locally

Development

The code can be formatted and linted in accordance with the agreed standards.

yarn fmt
yarn lint

Testing

This package uses yarn (latest) to run unit tests on each platform with jest.

yarn test:web

Visit the official storybook to see our available pagination templates.

Keywords

FAQs

Package last updated on 02 Jul 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