stone-kit
Version:
uikit for redesign
35 lines (33 loc) • 907 B
TypeScript
import { ReactNode } from 'react';
declare const TAB_SWITCHER_VARIANTS: {
whiteRow: string;
grayRow: string;
whiteRowGrayLabel: string;
};
type TabSizes = 'medium' | 'small' | 'large' | 'tiny';
export interface ITabSwitcherItem extends React.InputHTMLAttributes<HTMLInputElement> {
addItemClassName?: string;
addTextClass?: string;
addLabelClassname?: string;
index: number;
isDisabled?: boolean;
itemsLength: number;
width?: string;
width_m?: string;
mini?: boolean;
width_l?: string;
children?: ReactNode;
isLongOn?: boolean;
size_s?: TabSizes;
size_m?: TabSizes;
size_l?: TabSizes;
}
export interface TabSwitcherProps {
variant?: TABS_VARIANTS;
addClassName?: string;
isApart?: boolean;
col?: boolean;
children: React.ReactElement[];
}
export type TABS_VARIANTS = keyof typeof TAB_SWITCHER_VARIANTS;
export {};