Skip to content

Allow tabs to be disabled #433

Open
Open
@pierrelemee

Description

@pierrelemee

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions