UNPKG

@tritium-research/react-component

Version:

A react component library based on material-ui, build for tritium internal usecases.

24 lines (23 loc) 715 B
import { TabProps, TabsProps as MuiTabsProps, BoxProps } from "@mui/material"; import * as React from "react"; interface TabOption { label: React.ReactNode; value: number; children?: React.ReactNode; } export interface TabPanelProps extends BoxProps { children?: React.ReactNode; index: number; value: number; } export interface TabsProps { currentValue?: number; options: TabOption[]; onChange?: (event: React.SyntheticEvent, newValue: number) => void; tabsProps?: MuiTabsProps; tabProps?: TabProps; tabsWrapperProps?: BoxProps; tabPanelProps?: TabPanelProps; } export default function Tabs(props: TabsProps): import("react/jsx-runtime").JSX.Element; export {};