navigation/@mihcm/ui·v0.21.0·stable
Pagination
Page navigation with numbered links and previous/next buttons. Composable: Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationPrevious, PaginationNext, PaginationEllipsis.
Live preview
Adjust the controls on the right; the preview and code update in real time.
example.tsxtsx
import { Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationPrevious, PaginationNext, PaginationEllipsis } from '@mihcm/ui/Pagination';
export function Example() {
return (
<Pagination
totalPages="10"
currentPage="5"
siblingCount="1"
></Pagination>
);
}Install
Both paths are valid. CLI ships the source into your repo (you own it). Install pins via npm.
npx @mihcm/cli add PaginationCopies the source into
components/ds/Pagination.tsx. You own the file. Use --out to override the directory or --force to overwrite.