mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-14 05:42:54 +08:00

* 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>
20 lines
712 B
TypeScript
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>;
|
|
}
|