Skip to content

Commit

Permalink
[docs][material-ui][Pagination] Clarify pagination page prop API (m…
Browse files Browse the repository at this point in the history
…ui#42220)

Signed-off-by: Mandar-Pandya <[email protected]>
Co-authored-by: ZeeshanTamboli <[email protected]>
  • Loading branch information
Mandar-Pandya and ZeeshanTamboli authored May 16, 2024
1 parent 997bec6 commit 7882099
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
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 @@ -199,7 +199,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

0 comments on commit 7882099

Please sign in to comment.