Disabling tabpanels in @atlaskit/tabs

I would like to create a tab section using @atlaskit/tabs component and in my use case I need to disable certain tabs and enable certain tabs. With the current documentation I was not able to achieve this use case. Does anyone know how to achieve this use case of disabling certain Tab Panels?

Hi @KarthikeyanSreekumar,

Currently there isn’t an inbuilt way to achieve this behaviour.
However there are a few ways this behaviour can bee added; I have created an example for you.

If you need more control then please see the controlled example in the documentation for Tabs.

I will add a feature suggestion based on your question to gauge the interest.

I hope this answers your query; thank you for your post.

1 Like