ant-design / components /flex /interface.ts
AbdulElahGwaith's picture
Upload folder using huggingface_hub
5941ac2 verified
Raw
History Blame Contribute Delete
695 Bytes
import type React from 'react';
import type { Orientation } from '../_util/hooks';
import type { AnyObject, CustomComponent, LiteralUnion } from '../_util/type';
import type { SizeType } from '../config-provider/SizeContext';
export interface FlexProps<P = AnyObject> extends React.HTMLAttributes<HTMLElement> {
prefixCls?: string;
rootClassName?: string;
vertical?: boolean;
orientation?: Orientation;
wrap?: boolean | React.CSSProperties['flexWrap'];
justify?: React.CSSProperties['justifyContent'];
align?: React.CSSProperties['alignItems'];
flex?: React.CSSProperties['flex'];
gap?: LiteralUnion<SizeType, React.CSSProperties['gap']>;
component?: CustomComponent<P>;
}