mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-12 07:09:55 +08:00
18 lines
603 B
TypeScript
18 lines
603 B
TypeScript
|
import type React from 'react';
|
||
|
|
||
|
import type { AnyObject } 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?: React.ComponentType<P> | string;
|
||
|
}
|