Discover / Navigation
Pagination
Move through a set of pages.
Usage notes
Pagination is controlled: keep the current page in state and update it with onPageChange.
Examples use @easyui/react and its stylesheet. Read the setup guide.
Example source
import { useState } from "react";
import { Pagination } from "@easyui/react";
export default function Example() {
const [page, setPage] = useState(1);
return (
<Pagination page={page} pageCount={5} onPageChange={setPage} />
);
}