@nutui/nutui-react-taro
Version:
京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序
26 lines (25 loc) • 743 B
TypeScript
import { default as React, FunctionComponent } from 'react';
import { BasicComponent } from '../../utils/typings';
export interface SpaceProps extends BasicComponent {
/**
* 间距方向
* @default 'horizontal'
*/
direction: 'horizontal' | 'vertical'
/**
* 交叉轴对齐方式
* @default -
*/
align: 'start' | 'end' | 'center' | 'baseline'
/**
* 主轴对齐方式
* @default -
*/
justify: 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly' | 'stretch'
/**
* 是否自动换行,仅在 horizontal 时有效
* @default false
*/
wrap: boolean
}
export declare const Space: FunctionComponent<Partial<SpaceProps> & React.HTMLAttributes<HTMLDivElement>>;