interface.d.ts 604 B

1234567891011121314
  1. import type React from 'react';
  2. import type { AnyObject, CustomComponent } from '../_util/type';
  3. import type { SizeType } from '../config-provider/SizeContext';
  4. export interface FlexProps<P = AnyObject> extends React.HTMLAttributes<HTMLElement> {
  5. prefixCls?: string;
  6. rootClassName?: string;
  7. vertical?: boolean;
  8. wrap?: boolean | React.CSSProperties['flexWrap'];
  9. justify?: React.CSSProperties['justifyContent'];
  10. align?: React.CSSProperties['alignItems'];
  11. flex?: React.CSSProperties['flex'];
  12. gap?: React.CSSProperties['gap'] | SizeType;
  13. component?: CustomComponent<P>;
  14. }