Open
Description
Allow tabs to be disabled
Sometimes it can be useful to disable a tab, thus indicating the user that the tab content is not available at the moment.
I figured there could be a way to declare tabs
, either in controlled and uncontrolled modes, as such:
<Tabs
selectedTabId={selectedTabId}
tabs={[
{ tabId: "me", label: "About me" },
{ tabId: "results", label: "My results", disabled: true }
]}
onTabChange={selectTabId}
/>
I don't know why the disabled
attribute is not available yet, maybe there is a reason I'm not aware of.
In case of acceptance, I'm 👌 to contribute.
Metadata
Metadata
Assignees
Labels
No labels