Pagination
Page selector with first/last anchors, ellipsis gaps, and prev/next arrows. The visible budget is capped by numberOfBoxes; pass any sorted number[] via pageNumbers.
Small set
Selected: 1Capped with ellipsis
Selected: 15Source
import { useState } from 'react';import { BsPagination } from '@mintplayer/react-bootstrap/pagination';export function MyPagination() { const [page, setPage] = useState(1); const pages = Array.from({ length: 30 }, (_, i) => i + 1); return ( <BsPagination pageNumbers={pages} selectedPageNumber={page} numberOfBoxes={9} onSelectedPageNumberChange={setPage} /> );}