mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 19:19:26 +08:00
eaf4949ef0
* feat: App support component * test: update test case * chore: update ts
18 lines
607 B
TypeScript
18 lines
607 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?: 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>;
|
|
}
|