Skip to main content

Pages

To implement Pages component into your project you'll need to add the import:

import { Pagination } from "@shoptet/ui";

After adding import into your project you can use it simply like:

<Pagination.Pages
pagesTotal={5}
pageCurrent={1}
previousPageUrl={null}
nextPageUrl="/page/2"
getLinkProps={(page) => ({ href: `?from=${page}`, onClick: () => {} })}
/>