@govuk-react/pagination

Renders a styled list using flexbox, along with PaginationAnchor items expected to be provided as children.

Stats

StarsIssuesVersionUpdatedCreatedSize
@govuk-react/pagination
0.9.114 days ago4 years agoMinified + gzip package size for @govuk-react/pagination in KB

Readme

Pagination

Import

  import Pagination from '@govuk-react/pagination';

Usage

import { Pagination } from 'govuk-react';

<Pagination>
  <Pagination.Anchor href="#prev" previousPage>
    Previous page
  </Pagination.Anchor>
  <Pagination.Anchor href="#next" nextPage>
    Next page
  </Pagination.Anchor>
</Pagination>

References:

Properties

Prop Required Default Type Description
children true `````` node

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.