Module: Gap

间距
Properties:
Name Type Description
props object 组件属性,内容如下
Properties
Name Type Description
className string 样式类名称
width string | number 间距宽度,比如20,'20px','20%'
height string | number 间距高度,比如20,'20px','20%'

Examples

组件引入

// 全局模块引入
import { Gap } from '@ccreator/smart-ui';
// 最小化模块引入
import Gap from '@ccreator/smart-ui/dist/Gap';

使用示例

<!-- 垂直间距高度 -->
<Panel />
<Gap h={40}/>
<Panel />

<!-- 水平间距宽度 -->
<div className="flex">
    <Gap w="20px"/>
    <input />
</div>