Socket
Socket
Sign inDemoInstall

@visual-framework/vf-pagination

Package Overview
Dependencies
0
Maintainers
5
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @visual-framework/vf-pagination

vf-pagination component


Version published
Weekly downloads
336
increased by8.39%
Maintainers
5
Created
Weekly downloads
 

Readme

Source

Pagination component

npm version

About

A simple pagination component for long listings such as search results.

Usage

When to use this component

Use pagination:

  • for long listings (such as search results and article archives) that consist of more than 100 items. If your list consists of fewer items you may not need to add pagination.
  • when most users will only look at the content on the first page or first few pages.

When not to use this component

Do not use pagination:

  • for linear content such as a long page or article.
  • when you are asking the user to complete a form. Instead, use vf-button to let the user move to the next page and a Back link to let them move to the previous page.

Also see the recommendations by Nielsen Norman and the pagination compoment in gov.uk.

Accessibility

This component targets WCAG 2.1 AA accessibility.

Install

This repository is distributed with npm. After installing npm and yarn, you can install with this command.

$ yarn add --dev @visual-framework/vf-pagination

Sass/CSS

The style files included are written in Sass. If you're using a VF-core project, you can import it like this:

@import "@visual-framework/vf-pagination/index.scss";

Make sure you import Sass requirements along with the modules. You can use a project boilerplate or the vf-sass-starter

Help

Keywords

FAQs

Last updated on 10 May 2023

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