fui-fancyui
Version:
FancyUI Libary
25 lines (24 loc) • 841 B
TypeScript
import { TLayer } from '../../../types/TLayer';
import { HTMLAttributes } from 'react';
import { TUiColorsNotTransparent } from '../../../types/TUiColorsNotTransparent';
import { TComponentSizes } from '../../../types/TComponentSizes';
import { TTextAlignLRC } from '../../../types/TTextAlignLRC';
type WithLabel = {
label: string;
textAlignment?: TTextAlignLRC;
};
type WithoutLabel = {
label?: never;
textAlignment?: TTextAlignLRC;
};
export type TSeperator = {
themeType?: TUiColorsNotTransparent;
layer?: TLayer;
noLine?: boolean;
fontWeight?: number | string;
sizeC?: TComponentSizes;
icon?: React.ReactNode;
} & (WithLabel | WithoutLabel);
export type TSeperatorNativeAttrs = HTMLAttributes<HTMLDivElement>;
export type TSeperatorWithNativeAttrs = TSeperator & TSeperatorNativeAttrs;
export {};