GitHub

Pagination

Pagination with page navigation, next and previous links.

Docs

Installation

npx solidui-cli@latest add pagination

Usage

import {
  Pagination,
  PaginationEllipsis,
  PaginationItem,
  PaginationItems,
  PaginationNext,
  PaginationPrevious
} from "~/components/ui/pagination"
<Pagination
  itemComponent={(props) => <PaginationItem page={props.page}>{props.page}</PaginationItem>}
  ellipsisComponent={() => <PaginationEllipsis />}
>
  <PaginationPrevious />
  <PaginationItems />
  <PaginationNext />
</Pagination>