Skip to content

Instantly share code, notes, and snippets.

@ckoster22
Last active July 22, 2017 15:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ckoster22/00b9c689c43bf9e2cd24fb0c0ee69f8b to your computer and use it in GitHub Desktop.
Save ckoster22/00b9c689c43bf9e2cd24fb0c0ee69f8b to your computer and use it in GitHub Desktop.
export type Tab = {
label: string,
onClick: () => any
};
export type Border = "top" | "bottom";
export type TabPanelButtonProps = {
tabs: TwoTabPanel | ThreeTabPanel | FourTabPanel,
highlightedBorder: Border,
activeIndex: number
};
export type TwoTabPanel = {
kind: 'TwoTabPanel',
tab1: Tab,
tab2: Tab
};
export type ThreeTabPanel = {
kind: 'ThreeTabPanel',
tab1: Tab,
tab2: Tab,
tab3: Tab
};
export type FourTabPanel = {
kind: 'FourTabPanel',
tab1: Tab,
tab2: Tab,
tab3: Tab,
tab4: Tab
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment