UNPKG

926 BTypeScriptView Raw
1import * as React from 'react';
2import type { SizeType } from '../config-provider/SizeContext';
3import Compact from './Compact';
4export { SpaceContext } from './context';
5export type SpaceSize = SizeType | number;
6export interface SpaceProps extends React.HTMLAttributes<HTMLDivElement> {
7 prefixCls?: string;
8 className?: string;
9 rootClassName?: string;
10 style?: React.CSSProperties;
11 size?: SpaceSize | [SpaceSize, SpaceSize];
12 direction?: 'horizontal' | 'vertical';
13 align?: 'start' | 'end' | 'center' | 'baseline';
14 split?: React.ReactNode;
15 wrap?: boolean;
16 classNames?: {
17 item: string;
18 };
19 styles?: {
20 item: React.CSSProperties;
21 };
22}
23type CompoundedComponent = React.ForwardRefExoticComponent<SpaceProps & React.RefAttributes<HTMLDivElement>> & {
24 Compact: typeof Compact;
25};
26declare const CompoundedSpace: CompoundedComponent;
27export default CompoundedSpace;