22 lines
589 B
Markdown
22 lines
589 B
Markdown
|
---
|
||
|
category: Components
|
||
|
type: Layout
|
||
|
title: Space
|
||
|
cols: 1
|
||
|
cover: https://gw.alipayobjects.com/zos/antfincdn/wc6%263gJ0Y8/Space.svg
|
||
|
---
|
||
|
|
||
|
Set components spacing.
|
||
|
|
||
|
## When To Use
|
||
|
|
||
|
Avoid components clinging together and set a unified space.
|
||
|
|
||
|
## API
|
||
|
|
||
|
| Property | Description | Type | Default | Version |
|
||
|
| --- | --- | --- | --- | --- |
|
||
|
| align | Align items | `start` \| `end` \|`center` \|`baseline` | - | 1.6.5 |
|
||
|
| direction | The space direction | `vertical` \| `horizontal` | `horizontal` | 1.6.5 |
|
||
|
| size | The space size | `small` \| `middle` \| `large` \| `number` | `small` | 1.6.5 |
|