fui-fancyui
Version:
FancyUI Libary
24 lines (23 loc) • 1.05 kB
TypeScript
import { ElementType, LabelHTMLAttributes } from 'react';
import { TLayer } from '../../../types/TLayer';
import { TUiColorsSystemMessage } from '../../../types/TUiColorsSystemMessage';
import { TUiColorsNotTransparent } from '../../../types/TUiColorsNotTransparent';
import { TTypography } from '../Typography/Typography.model';
import { TComponentSizes } from '../../../types/TComponentSizes';
import { TTextAlignLRC } from '../../../types/TTextAlignLRC';
export type TAlignedLabelProps = {
align?: TTextAlignLRC;
systemMessageType?: TUiColorsSystemMessage;
themeType?: TUiColorsNotTransparent;
layer?: TLayer;
size?: TComponentSizes;
ownTypographyComponent?: boolean;
};
type TTypographyOptionalVariant = {
typography?: Partial<Pick<TTypography, 'variant'>> & Omit<TTypography, 'variant' | 'children' | 'elType'>;
};
type HTMLAttributes = LabelHTMLAttributes<HTMLLabelElement> & {
as?: ElementType;
};
export type TAlignedLabelWithAllProps = TAlignedLabelProps & TTypographyOptionalVariant & HTMLAttributes;
export {};