UNPKG

grepsr-ui-elements

Version:

48 lines (47 loc) 1.57 kB
import { ReactJSXElement } from "@emotion/react/types/jsx-namespace"; import { SvgIconProps } from "@mui/material"; import PropTypes from "prop-types"; import React, { ComponentType } from "react"; interface tabArray { label: string; value: string | number; icon: ComponentType<SvgIconProps> | ReactJSXElement | null; } interface TabProps { value?: any; onChange: (event: React.SyntheticEvent, newValue: string) => void | undefined; tabArray: tabArray[]; orientation: "vertical" | "horizontal"; variant: "fullWidth" | "scrollable" | "standard"; scrollButtons?: boolean | undefined; allowScrollButtonsMobile?: boolean | undefined; visibleScrollbar?: boolean | undefined; isIcon?: boolean; } export { TabProps }; declare const GrepsrTabs: { (props: TabProps): JSX.Element; defaultProps: { tabArray: { id: number; value: string; label: string; }[]; visibleScrollbar: boolean; allowScrollButtonsMobile: boolean; scrollButtons: boolean; variant: string; orientation: string; isIcon: boolean; }; propTypes: { value: PropTypes.Requireable<any>; tabArray: PropTypes.Validator<any[]>; orientation: PropTypes.Validator<string>; variant: PropTypes.Validator<string>; visibleScrollbar: PropTypes.Requireable<boolean>; scrollButtons: PropTypes.Requireable<boolean>; allowScrollButtonsMobile: PropTypes.Requireable<boolean>; }; }; export default GrepsrTabs;