Skip to main content

Pagination

Moves between pages of a list or table. Stock Mantine Pagination, with a hover border added to every control so the whole strip reads as interactive before a click lands.

Base
Mantine + override
Import
{ Pagination } from '@mantine/core'
Source
src/themes/theme.ts
src/themes/style-overrides/pagination.module.css

Usage​

total
disabled
React
<Pagination total={10} defaultValue={1} />

Props​

Only what this design system changes. Everything else is Mantine's — read the full props table there.

PropertyTypeAllowed valuesDefaultDescription
Hover———Not a prop. Every control — page-number items and the next/previous/first/last buttons alike, Mantine's shared control selector — grows an accent border on hover: border-color: var(--mantine-color-primary).
Active page———Not a prop. Excluded from the hover rule (:not([data-active])), so its own filled style is not fought by a border colour underneath it.
Disabled———Not a prop. Also excluded (:not([data-disabled])), so disabled controls stay visually inert.

Accessibility​

Pagination controls render as native <button> elements, so Tab and Enter/Space work without extra wiring. Mantine does not add an aria-label to the root on its own — if this is the page's primary paging control, wrap it in a labeled landmark, e.g. <nav aria-label="Sidenavigering"><Pagination ... /></nav>.

The hover border is the only non-text signal this override adds; it sits on top of Mantine's own active/disabled treatment rather than replacing it, so those states stay distinguishable without relying on the accent border alone.