Skip to content

Instantly share code, notes, and snippets.

@dagda1
Created January 19, 2019 17:41
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 dagda1/51d72e178bae3998438286a06ede65a1 to your computer and use it in GitHub Desktop.
Save dagda1/51d72e178bae3998438286a06ede65a1 to your computer and use it in GitHub Desktop.
export interface Tab<TProps = unknown> {
title: string;
content: TProps extends React.HTMLAttributes<TProps>
? React.ReactNode
: React.ReactElement<TProps & { viewMode: ViewMode }>;
popout?: boolean;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment