Paginación numerada con puntos suspensivos y un número constante de huecos (la barra nunca salta), anterior/siguiente, un modo compacto “Página x de y”; los estilos CSS funcionan por sí solos para los enlaces renderizados en el servidor.
Agente de IA con el servidor MCP de Marvelous UI: install_components({ slugs: ["pagination"], target_dir: "<absolute path>/src/marvelous", framework: "react" }).
Static: list of numbers and “ellipsis” entries to render (reusable server-side).
Events
Name
Description
mv-change
Cancelable (preventDefault keeps the page). detail: { page, previous }.
CSS classes
Name
Description
mv-pagination
On <nav aria-label> (or set automatically on the element).
mv-pagination-item
Page button or link; aria-current="page" for the current page.
mv-pagination-prev / -next
Arrows; aria-disabled="true" at either end.
mv-pagination-ellipsis
Ellipsis (automatic icon when empty), inside an <li aria-hidden="true">.
mv-pagination-status
“Page 3 of 20” text.
CSS variables
Name
Default
Description
--mv-pagination-radius
var(--mv-radius-md)
Button radius.
Accessibility
Labeled navigation landmark, aria-current="page" on the current page, each number announced as “Page n”. Arrows at either end stay focusable with aria-disabled so focus is never lost; after a page change, focus stays on the same button. In compact mode, the status is announced (aria-live).