Skip to content

SearchcraftPagination()

SearchcraftPagination(props, deprecatedLegacyContext?): ReactNode

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

Parameters

props

SearchcraftPaginationProps

deprecatedLegacyContext?

any

Deprecated

See

React Docs

Returns

ReactNode

Example

import React from 'react';
import { SearchcraftPagination } from '@searchcraft/react-sdk';
const MyPaginationComponent = () => {
return (
// other searchcraft components
<SearchcraftPagination />
);
};
export default MyPaginationComponent;