Skip to content

searchcraft-pagination

This web component is designed to facilitate pagination of search results. Once a query is submitted, calculates the number for pages.

import { SearchcraftPagination } from "@searchcraft/react-sdk";
<searchcraft-pagination />
PropertyAttributeDescriptionTypeDefault
pageQueryParampage-query-paramThe URL query string parameter name used to track the current page. When a user navigates to a URL that contains this parameter, the pagination component will automatically navigate to that page.string'p'
scrollToTopscroll-to-topWhether to scroll to the top of the search results when pagination buttons are clicked.boolean | undefinedtrue
searchcraftIdsearchcraft-idThe id of the Searchcraft instance that this component should use.string | undefinedundefined
usePageQueryParamuse-page-query-paramWhether to use a query string parameter to track and restore the current page. Set to false to disable query string synchronisation entirely.booleantrue