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

@washingtonpost/wpds-pagination-dots

Package Overview
Dependencies
Maintainers
4
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@washingtonpost/wpds-pagination-dots

WPDS Pagination Dots and Container

  • 1.24.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

PaginationDots

Pagination dots show progress over a range of items (such as a carousel of images). Mandatory props are amount (the total amount of dots) and index (the 1-indexed position of the currently active dot). Optional prop is unitName, which describes the type of item the dots represent (such as page or image). When unitName is specified, the aria-valuetext will read "[unitName] x of y", where x and y are numbers (More on aria-valuetext here).

The PaginationDots component is meant to be controlled by another component, such as a Carousel which sets/updates amount and index to represent the items being traversed.

The parent element is meant to have a position: relative or position: absolute in order for the dots to attach to the element.

import { PaginationDots } from "@washingtonpost/wpds-ui-kit";

function Component() {
  return <PaginationDots amount={5} index={1} unitName="Page" />;
}

FAQs

Package last updated on 09 Apr 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