Skip to content

Commit

Permalink
[docs] Fix wrong description for UseTabParameters.onChange (#42749)
Browse files Browse the repository at this point in the history
  • Loading branch information
ohgree committed Jul 1, 2024
1 parent 8d17f56 commit f993fe5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/translations/api-docs/use-tab/use-tab.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"id": {
"description": "The id of the tab. If not provided, it will be automatically generated."
},
"onChange": { "description": "If <code>true</code>, the tab will be disabled." },
"onChange": { "description": "Callback invoked when new value is being set." },
"onClick": { "description": "Callback fired when the tab is clicked." },
"rootRef": { "description": "Ref to the root slot&#39;s DOM element." },
"value": {
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-base/src/useTab/useTab.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export interface UseTabParameters {
*/
value?: number | string;
/**
* If `true`, the tab will be disabled.
* Callback invoked when new value is being set.
*/
onChange?: (event: React.SyntheticEvent, value: number | string) => void;
/**
Expand Down

0 comments on commit f993fe5

Please sign in to comment.