@douyinfe/semi-ui
Version:
A modern, comprehensive, flexible design system and UI library. Connect DesignOps & DevOps. Quickly build beautiful React apps. Maintained by Douyin-fe team.
34 lines (33 loc) • 1.14 kB
TypeScript
import { PureComponent, ReactNode, CSSProperties } from 'react';
import PropTypes from 'prop-types';
import '@douyinfe/semi-foundation/lib/cjs/space/space.css';
export type Align = 'start' | 'center' | 'end' | 'baseline';
export type Spacing = 'loose' | 'medium' | 'tight' | number;
export type SpaceProps = {
wrap?: boolean;
align?: Align;
vertical?: boolean;
spacing?: Spacing | Spacing[];
children?: ReactNode;
style?: CSSProperties;
className?: string;
};
declare class Space extends PureComponent<SpaceProps> {
static propTypes: {
wrap: PropTypes.Requireable<boolean>;
align: PropTypes.Requireable<string>;
vertical: PropTypes.Requireable<boolean>;
spacing: PropTypes.Requireable<NonNullable<string | number | any[]>>;
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
style: PropTypes.Requireable<object>;
className: PropTypes.Requireable<string>;
};
static defaultProps: {
vertical: boolean;
wrap: boolean;
spacing: string;
align: string;
};
render(): ReactNode;
}
export default Space;