@gpa-gemstone/react-interactive
Version:
Interactive UI Components for GPA products
27 lines (26 loc) • 585 B
TypeScript
interface ITab {
Label: string;
Id: string;
}
interface IProps {
/**
* List of tabs to be used in the TabSelector
*/
Tabs: ITab[];
/**
* Setter function to set tab that was clicked
* @param t tab that was clicked
* @returns
*/
SetTab: (tab: string) => void;
/**
* Id of the current tab
*/
CurrentTab: string;
}
/**
* Component for rendering a dropdown tab selector.
* @param props - configures and manages tab selector.
*/
declare const TabSelector: (props: IProps) => JSX.Element;
export default TabSelector;