ant-design/components/flex/interface.ts
lijianan a09b9dd820
feat: wrap prop support boolean (#48391)
* feat: wrap prop support boolean

* test: add test case

* fix: fix

* fix: fix

* fix: fix

* fix: fix

* fix: fix

* fix: fix

* fix: fix

* test: update

* chore: revert
2024-04-11 22:29:50 +08:00

18 lines
617 B
TypeScript

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>;
}