diff --git a/core/core/src/configuration.ts b/core/core/src/configuration.ts index dc228298c..9cfc1b7ec 100644 --- a/core/core/src/configuration.ts +++ b/core/core/src/configuration.ts @@ -44,6 +44,11 @@ export interface TabConfiguration { * variant key in the pagecontainer theme value */ variant?: string; + + /** + * callback to determine if the tab is visible + */ + isVisible?: (props: { story: Story; doc: Document }) => boolean; } export type PageTab = string | TabConfiguration | [string, TabConfiguration];