PromoCursed/node_modules/antd/lib/flex/interface.d.ts

16 lines
635 B
TypeScript
Raw Normal View History

2024-08-20 23:25:37 +04:00
import type React from 'react';
import type { AnyObject, CustomComponent } 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;
wrap?: boolean | React.CSSProperties['flexWrap'];
justify?: React.CSSProperties['justifyContent'];
align?: React.CSSProperties['alignItems'];
flex?: React.CSSProperties['flex'];
gap?: React.CSSProperties['gap'] | SizeType;
children: React.ReactNode;
component?: CustomComponent<P>;
}