-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[Tabs] Improve useTab() API page #36725
[Tabs] Improve useTab() API page #36725
Conversation
Netlify deploy previewhttps://deploy-preview-36725--material-ui.netlify.app/ Bundle size report |
d3f8c4f
to
b27c9e6
Compare
*/ | ||
value?: number | string; | ||
/** | ||
* Callback invoked when new value is being set. | ||
*/ | ||
onChange?: (event: React.SyntheticEvent, value: number | string) => void; | ||
onClick?: React.MouseEventHandler; | ||
/** | ||
* If `true`, the component is disabled. | ||
* @default false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is inherited from useButton()
.
material-ui/packages/mui-base/src/useButton/useButton.types.ts
Lines 21 to 26 in b27c9e6
export interface UseButtonParameters { | |
/** | |
* If `true`, the component is disabled. | |
* @default false | |
*/ | |
disabled?: boolean; |
Ideally, we would document hooks inheritance, but in the meantime, we can continue to duplicate.
b27c9e6
to
ca8c506
Compare
@@ -3,14 +3,18 @@ import { UseButtonRootSlotProps } from '../useButton'; | |||
|
|||
export interface UseTabParameters { | |||
/** | |||
* You can provide your own value. Otherwise, we fall back to the child position index. | |||
* You can provide your own value. Otherwise, it falls back to the child position index. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no we in this context https://www.notion.so/mui-org/Values-2817854949c84ec2bf32b3d175564655?pvs=4#02ed36d3767942a19a6d6954a4f62487.
Noticed in #36715