lune-ui-lib
Version:
Lune UI Components Library
24 lines (23 loc) • 543 B
TypeScript
import type { SxProps } from '@mui/material';
import React, { FC } from 'react';
export interface TabProps {
label: string;
value: string;
dataTestId: string;
}
type TabsSubcomponent = {
Tab: typeof Tab;
};
declare const Tab: FC<{
children: React.ReactNode;
} & {
label: string;
value: string;
}>;
declare const ToggleTabs: FC<{
children: React.ReactNode[];
defaultActive?: string;
sx?: SxProps;
onChange?: (selected: TabProps | undefined) => void;
}> & TabsSubcomponent;
export default ToggleTabs;