fui-fancyui
Version:
FancyUI Libary
30 lines (29 loc) • 1.12 kB
TypeScript
import { HTMLAttributes } from 'react';
import { CSSProp } from 'styled-components';
import { TComponentSizes } from '../../../types/TComponentSizes';
import { TLayer } from '../../../types/TLayer';
import { TUiColorsMain } from '../../../types/TUiColorsMain';
import { TUiColorsMainAndAccent } from '../../../types/TUiColorsMainAndAccent';
import { TTextAlignLR } from '../../../types/TTextAlignLR';
export type TTabSwitchDetailsLabelIcon = {
itemKey: string;
label?: string;
icon?: JSX.Element;
};
export type TTabSwitchDetailsChildren = {
itemKey: string;
children?: React.ReactNode;
};
export type TTabSwitchButton = {
disabled?: boolean;
selected: boolean;
onClick?: (key: string) => void;
themeType?: TUiColorsMain;
activeTextThemeType?: TUiColorsMainAndAccent;
layer?: TLayer;
iconAlign?: TTextAlignLR;
sizeC?: TComponentSizes;
externalStyle?: CSSProp;
};
export type TTabSwitchButtonProps = TTabSwitchButton & TTabSwitchDetailsChildren & TTabSwitchDetailsLabelIcon;
export type TFancyTabSwitchButton = TTabSwitchButtonProps & HTMLAttributes<HTMLDivElement>;