What this family solves
Finite page navigation with shared item-window generation, ellipsis rendering, current-page semantics, and React/Vue/Svelte adapters.
Marwes documentation
Finite page navigation with shared item-window generation, ellipsis rendering, current-page semantics, and React/Vue/Svelte adapters.
Finite page navigation with shared item-window generation, ellipsis rendering, current-page semantics, and React/Vue/Svelte adapters.
Use PaginationField for page-based navigation through a paged data set.
Labeled page-based navigation through a paged data set
Choose an adapter in the verified examples. The inventory below reflects each framework package exactly.
@marwes-ui/reactPaginationField
PaginationFieldProps
@marwes-ui/vuePaginationField
PaginationFieldProps
@marwes-ui/sveltePaginationField
PaginationFieldProps
These examples come from the same fixtures verified by the repository checks.
import { PaginationField } from "@marwes-ui/react"
import { useState } from "react"
export function Example() {
const [page, setPage] = useState(1)
return (
<PaginationField
label="Search results"
pagination={{
page,
pageCount: 10,
controlDisplay: "label",
maxVisibleItems: 5,
onPageChange: setPage,
}}
/>
)
}<script setup lang="ts">
import { PaginationField } from "@marwes-ui/vue"
</script>
<template>
<PaginationField
label="Search results"
:pagination="{
defaultPage: 1,
pageCount: 10,
controlDisplay: 'label',
maxVisibleItems: 5,
}"
/>
</template><script lang="ts">
import { PaginationField } from "@marwes-ui/svelte"
let page = $state(1)
</script>
<PaginationField
label="Search results"
pagination={{
page,
pageCount: 10,
controlDisplay: "label",
maxVisibleItems: 5,
onpagechange: (value) => (page = value),
}}
/>Pagination uses Marwes preset CSS and theme variables. Customize it through the theme passed to MarwesProvider; do not add a second component stylesheet. See the theming guide for configuration and token details.