Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

Commit 66ad6c9

Browse files
committed
docs(pagination): the with-item-count example and the docs interface block stop authoring pageSize / totalItems, which neither face declares (objectui#6152, round 4)
Claude-Session: https://claude.ai/code/session_01TdiauJaVCHuj45EzZGUxHh Co-authored-by: Claude <noreply@anthropic.com>
1 parent 87520ea commit 66ad6c9

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

‎content/docs/components/basic/pagination.mdx‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,20 @@ The Pagination component allows users to navigate through pages of data.
99

1010
<SchemaExample id="components-basic-pagination/basic-pagination" />
1111

12-
## With Page Size
12+
## On a Later Page
1313

1414
<SchemaExample id="components-basic-pagination/with-item-count" />
1515

16+
`pagination` has no page-size or item-count keys: the page state it reads is
17+
`currentPage` and `totalPages`.
18+
1619
## Schema
1720

1821
```plaintext
1922
interface PaginationSchema {
2023
type: 'pagination';
2124
currentPage: number; // Current page (1-based)
2225
totalPages: number; // Total number of pages
23-
pageSize?: number; // Items per page
24-
totalItems?: number; // Total number of items
2526
2627
// Events
2728
// RUNTIME SLOT (objectui#6124): a React host supplies it; JSON refuses it
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
22
"type": "pagination",
33
"currentPage": 3,
4-
"totalPages": 20,
5-
"pageSize": 10,
6-
"totalItems": 200
4+
"totalPages": 20
75
}

0 commit comments

Comments
 (0)