ant-design/components/flex/interface.ts
EmilyyyLiu 45b175f6c5
feat(Flex): unify orientation attribute usage (#53648)
* feat[Flex]:Unified use of orientation attribute

* Update components/flex/index.en-US.md

Co-authored-by: thinkasany <480968828@qq.com>
Signed-off-by: EmilyyyLiu <100924403+EmilyyyLiu@users.noreply.github.com>

* Update components/flex/index.zh-CN.md

Co-authored-by: thinkasany <480968828@qq.com>
Signed-off-by: EmilyyyLiu <100924403+EmilyyyLiu@users.noreply.github.com>

* feat: delete flex default value=false

---------

Signed-off-by: EmilyyyLiu <100924403+EmilyyyLiu@users.noreply.github.com>
Co-authored-by: 刘欢 <lh01217311@antgroup.com>
Co-authored-by: thinkasany <480968828@qq.com>
2025-05-19 16:09:54 +08:00

20 lines
712 B
TypeScript

import type React from 'react';
import type { Orientation } from '../_util/hooks/useOrientation';
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;
orientation?: Orientation;
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>;
}