import { CSSProperties, ReactNode } from 'react'; import { type SizeType } from '../config-provider'; export declare type SpaceSize = SizeType | number; export declare type SpaceAlign = 'start' | 'end' | 'center' | 'baseline'; /** * @title Space */ export interface SpaceProps { style?: CSSProperties; className?: string | string[]; /** * 对齐方式 * @en Alignment of items */ align?: SpaceAlign; /** * 间距方向 * @defaultValue horizontal */ direction?: 'vertical' | 'horizontal'; /** * 数组形式 */ size?: SpaceSize | SpaceSize[]; /** * 宽度100% */ block?: boolean; /** * 环绕类型的间距,用于折行的场景。 */ wrap?: boolean; /** * 子元素平均分 */ itemAuto?: boolean; /** * 设置分隔符 */ split?: ReactNode; children?: ReactNode; }