Props for the CustomTabs component.

interface TabProps {
    defaultAcive?: number;
    handleChange?: (e: SyntheticEvent, newValue: string | number) => void;
    labeledBy?: string;
    tabList?: { icon?: string | ReactElement<unknown, string>; label: string }[];
    tabsContents?: {
        content: ReactNode;
        headerTitle?: string;
        id?: string | number;
    }[];
    tabsSx?: SxProps<Theme>;
    underline?: boolean;
}

Properties

defaultAcive?: number

The default active tab index.

handleChange?: (e: SyntheticEvent, newValue: string | number) => void

Callback when the active tab changes.

labeledBy?: string

The aria-labelledby reference ID for accessibility.

tabList?: { icon?: string | ReactElement<unknown, string>; label: string }[]

List of tabs to render with label and optional icon.

tabsContents?: {
    content: ReactNode;
    headerTitle?: string;
    id?: string | number;
}[]

Corresponding content for each tab.

tabsSx?: SxProps<Theme>

Custom styles for the tab container.

underline?: boolean

Whether to show a bottom indicator under the selected tab.