Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
improve API description
  • Loading branch information
ZeeshanTamboli committed May 16, 2024
commit 5debfddc44a00ae0211b129c3c1dac9bf1f3c763
2 changes: 1 addition & 1 deletion docs/translations/api-docs/pagination/pagination.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
}
},
"page": {
"description": "The current page. The page starts at 1 unlike TablePagination which starts at 0."
"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.",
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 page starts at 1 unlike TablePagination which starts at 0.
* 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 page starts at 1 unlike TablePagination which starts at 0.
* The current page. Unlike `TablePagination`, which starts numbering from `0`, this pagination starts from `1`.
*/
page?: number;
/**
Expand Down