Skip to main content

Pagination

The pagination widget shows search results in pages so users can move through search results.

Default configuration

The Pagination component comes with:

Parameters

  • Pagination Parameters: This corresponds to the pagination widget provided by Algolia.

There are no default configurations for Slots or Variants. Learn more about configuring components

Add to a composition

When you add the Pagination component to a composition, you will need to configure the parameter to bring in data from the Algolia search index.

  1. Click the "Edit Value" button in the Parameters section.
algoglia-pagination-parameter
  1. Enter the maximum number of pages of results users can browse.
  2. Enter the number of page that should be displayed on each side of the current page. The default value is 3.
  3. Toggle each of the following on and off as desired for your experience:
    • Show First: Whether to display the first page link
    • Show Previous: Whether to display the previous page link
    • Show Next: Whether to display the next page link
    • Show Last: Whether to display the last page link
  4. Click the red "Save" button to save your changes to the composition.

You can add additional components within the Widgets slot provided.