Pagination

Pagination provides page-by-page navigation for long lists or tables, showing the current page and allowing users to move between pages.


Installation

npm install @libretexts/davis-react

Basic Usage

import { Pagination } from '@libretexts/davis-react';
import { useState } from 'react';

export default function Example() {
  const [page, setPage] = useState(1);

  return (
    <Pagination
      currentPage={page}
      totalPages={10}
      onPageChange={setPage}
    />
  );
}

Documentation in Progress

Full documentation for this component is being written. Check back soon for complete API reference, examples, and accessibility guidelines.