From d709587709d93e6610c6f5b82805442fe02b47fc Mon Sep 17 00:00:00 2001 From: atanasster Date: Tue, 5 Jan 2021 18:52:46 -0800 Subject: [PATCH] feat: add isVisible prop for tab pages --- core/core/src/configuration.ts | 5 +++++ 1 file changed, 5 insertions(+) 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];