UNPKG

@dodobrat/react-ui-kit

Version:
30 lines (29 loc) 1.01 kB
import React from "react"; import { CnCh, RippleEffect, SyntheticKeyboardControls } from "../../helpers/global.types"; export interface TabsPanelSubComponentProps extends CnCh { tabProps?: Object; tab?: React.ReactNode; } export declare type TabItemType = { isSelected: boolean; tabIndex: number; disabled: boolean; component: React.ReactNode; componentProps: Object; }; export declare type TabPanelType = { isActive: boolean; component: React.ReactNode; componentProps: Object; }; declare type ExtraTabsItemsSubComponentProps = CnCh & SyntheticKeyboardControls & RippleEffect; export interface TabsItemsSubComponentProps extends ExtraTabsItemsSubComponentProps { innerRef?: React.MutableRefObject<any> | React.LegacyRef<any>; activeOption?: number; orientation?: "horizontal" | "vertical"; options: Array<TabItemType>; } export interface TabContentSubComponentProps extends CnCh { options: Array<TabPanelType>; } export {};