useHitsPerPage hook provides the logic to build a custom component that allows users to change the number of results displayed per page.
Import
Parameters
Array of objects defining the different values and labels.
Function to transform the items passed to the templates.
Returns
Array of objects defining the different values and labels.
Function to set the number of hits per page and trigger a search.
Whether the search state can be refined.
Function to create a URL for a single item.