29 lines
957 B
TypeScript
29 lines
957 B
TypeScript
|
import * as React from 'react';
|
||
|
import type { SizeType } from '../config-provider/SizeContext';
|
||
|
import Compact from './Compact';
|
||
|
export { SpaceContext } from './context';
|
||
|
export type SpaceSize = SizeType | number;
|
||
|
export interface SpaceProps extends React.HTMLAttributes<HTMLDivElement> {
|
||
|
prefixCls?: string;
|
||
|
className?: string;
|
||
|
rootClassName?: string;
|
||
|
style?: React.CSSProperties;
|
||
|
size?: SpaceSize | [SpaceSize, SpaceSize];
|
||
|
direction?: 'horizontal' | 'vertical';
|
||
|
align?: 'start' | 'end' | 'center' | 'baseline';
|
||
|
split?: React.ReactNode;
|
||
|
wrap?: boolean;
|
||
|
classNames?: {
|
||
|
item: string;
|
||
|
};
|
||
|
styles?: {
|
||
|
item: React.CSSProperties;
|
||
|
};
|
||
|
}
|
||
|
declare const InternalSpace: React.ForwardRefExoticComponent<SpaceProps & React.RefAttributes<HTMLDivElement>>;
|
||
|
type CompoundedComponent = typeof InternalSpace & {
|
||
|
Compact: typeof Compact;
|
||
|
};
|
||
|
declare const Space: CompoundedComponent;
|
||
|
export default Space;
|