Skip to content

Commit

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

Signed-off-by: Mandar-Pandya <112475099+Mandar-Pandya@users.noreply.github.com>
Co-authored-by: Mandar-Pandya <112475099+Mandar-Pandya@users.noreply.github.com>
Co-authored-by: ZeeshanTamboli <zeeshan.tamboli@gmail.com>
  • Loading branch information
3 people authored May 16, 2024
1 parent 607daac commit df6516e
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 @@ -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

0 comments on commit df6516e

Please sign in to comment.