Skip to content

Commit

Permalink
feat: add isVisible prop for tab pages
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Jan 6, 2021
1 parent 549ff05 commit d709587
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/core/src/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit d709587

Please sign in to comment.