1.24.0 • Published 1 month ago

@washingtonpost/wpds-pagination-dots v1.24.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

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" />;
}
1.24.0

1 month ago

1.23.1

2 months ago

1.23.0

2 months ago

1.22.6

2 months ago

1.22.0

3 months ago

1.21.0

3 months ago

1.20.0

4 months ago

1.19.0

4 months ago

1.18.0

5 months ago

1.14.0

8 months ago

1.12.0

8 months ago

1.16.2

7 months ago

1.16.1

7 months ago

1.16.0

7 months ago

1.11.0

9 months ago

1.15.0

7 months ago

1.13.0

8 months ago

1.11.1

9 months ago

1.17.0

6 months ago

1.9.1

10 months ago

1.9.0

10 months ago

1.8.5

11 months ago

1.8.4

11 months ago

1.10.0

10 months ago

1.8.2

11 months ago

1.8.1

11 months ago

1.8.0

11 months ago

1.7.1

11 months ago

1.6.2

12 months ago

1.7.0

12 months ago

1.6.1

12 months ago

1.5.2

1 year ago

1.5.0

1 year ago

1.4.0

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

0.25.0

1 year ago

0.24.0

1 year ago

0.23.2

1 year ago

0.21.0

1 year ago

0.20.1

2 years ago

0.20.0

2 years ago

0.19.1

2 years ago

0.23.1

1 year ago

0.22.0

1 year ago

0.19.0

2 years ago

0.16.0

2 years ago

0.17.0

2 years ago

0.18.0

2 years ago

0.15.0

2 years ago

0.14.0

2 years ago

0.13.0

2 years ago