@faakhir/headlamp-plugin
Version:
The needed infrastructure for building Headlamp plugins.
28 lines (27 loc) • 816 B
TypeScript
import { Theme } from '@mui/material';
import { TypographyProps } from '@mui/material/Typography';
import { SxProps } from '@mui/system';
import { ReactNode } from 'react';
export interface Tab {
label: string;
component: ReactNode;
}
export interface TabsProps {
tabs: Tab[];
tabProps?: {
[propName: string]: any;
};
defaultIndex?: number | null | boolean;
onTabChanged?: (tabIndex: number) => void;
sx?: SxProps<Theme>;
ariaLabel: string;
}
export default function Tabs(props: TabsProps): import("react/jsx-runtime").JSX.Element;
interface TabPanelProps extends TypographyProps {
tabIndex: number;
index: number;
id: string;
labeledBy: string;
}
export declare function TabPanel(props: TabPanelProps): import("react/jsx-runtime").JSX.Element;
export {};