-
-
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
[Tab] Add explicit return type to useTab #36046
Conversation
|
|
||
export interface UseTabReturnValue { | ||
/** | ||
* If `true`, the tab is disabled. |
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.
* If `true`, the tab is disabled. | |
* If `true`, the component will be selected. |
*/ | ||
selected: boolean; | ||
/** | ||
* If `true`, the tab's focus is visible. |
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.
* If `true`, the tab's focus is visible. | |
* If `true`, the tab's focus will be visible. |
*/ | ||
setFocusVisible: React.Dispatch<React.SetStateAction<boolean>>; | ||
/** | ||
* If `true`, the tab is disabled. |
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.
* If `true`, the tab is disabled. | |
* If `true`, the component will be disabled. |
*/ | ||
disabled: boolean; | ||
/** | ||
* If `true`, the tab is active. |
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.
* If `true`, the tab is active. | |
* If `true`, the component will be active. |
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.
Thanks. I noticed that the description for the getRootProps
when generating the json is not complete. I will need to figure out why this is the case.
UseTab return value interface
closes: useTab in #35933
preview: https://deploy-preview-36046--material-ui.netlify.app/base/api/use-tab/#return-value