Pagination


The pagination component should be used to navigate between pages of content. Depending on the length provided, the pagination component will automatically scale.

View example of the pagination pattern

Truncated

When it is not possible to fit all pages into the component, a truncated option should be used to give the first, last and as many siblings of the current page as possible.

View example of the pagination pattern

Disabled controls

When a user is at the first or last item then the previous or next button, respectively, should be disabled.

View example of the pagination pattern

Import

To import just this component into your project, copy the snippet below and include it in your main Sass file.

@import 'patterns_pagination';

For more information see Customising Vanilla in your projects, which includes overrides and importing instructions.

Design

For more information view the pagination design spec, which includes the specification in markdown format and a PNG image.