间距
Properties:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
props |
object | 组件属性,内容如下
Properties
|
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>