Skip to content

Allow setting selected tab in TabPanel component #27371

@ecgan

Description

@ecgan

Is your feature request related to a problem? Please describe.

In TabPanel, We have a way to get the selected tab via onSelect, but we can't programmatically set a tab.

Describe the solution you'd like

TabPanel should have a prop like selected so that we can programmatically set the active selected tab if we want. Essentially this means that we will be able to use TabPanel as uncontrolled or controlled component.

Describe alternatives you've considered

Nil.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done 🎉

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions