Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs][material-ui][Pagination] Clarify pagination page prop API (@Mandar-Pandya) #42265

Merged
merged 1 commit into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/translations/api-docs/pagination/pagination.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
"page": "The page selected."
}
},
"page": { "description": "The current page." },
"page": {
"description": "The current page. Unlike <code>TablePagination</code>, which starts numbering from <code>0</code>, this pagination starts from <code>1</code>."
},
"renderItem": {
"description": "Render the item.",
"typeDescriptions": { "params": "The props to spread on a PaginationItem." }
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/Pagination/Pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ Pagination.propTypes /* remove-proptypes */ = {
*/
onChange: PropTypes.func,
/**
* The current page.
* The current page. Unlike `TablePagination`, which starts numbering from `0`, this pagination starts from `1`.
*/
page: integerPropType,
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/usePagination/usePagination.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export interface UsePaginationProps {
*/
onChange?: (event: React.ChangeEvent<unknown>, page: number) => void;
/**
* The current page.
* The current page. Unlike `TablePagination`, which starts numbering from `0`, this pagination starts from `1`.
*/
page?: number;
/**
Expand Down
Loading