2020-03-22 11:38:02 +08:00
|
|
|
---
|
|
|
|
category: Components
|
|
|
|
type: Layout
|
|
|
|
title: Space
|
|
|
|
cols: 1
|
2020-05-31 11:48:34 +08:00
|
|
|
cover: https://gw.alipayobjects.com/zos/antfincdn/wc6%263gJ0Y8/Space.svg
|
2020-03-22 11:38:02 +08:00
|
|
|
---
|
|
|
|
|
|
|
|
Set components spacing.
|
|
|
|
|
|
|
|
## When To Use
|
|
|
|
|
|
|
|
Avoid components clinging together and set a unified space.
|
|
|
|
|
|
|
|
## API
|
|
|
|
|
|
|
|
| Property | Description | Type | Default | Version |
|
|
|
|
| --- | --- | --- | --- | --- |
|
2020-06-30 11:25:55 +08:00
|
|
|
| align | Align items | `start` \| `end` \|`center` \|`baseline` | - | 4.2.0 |
|
|
|
|
| direction | The space direction | `vertical` \| `horizontal` | `horizontal` | 4.1.0 |
|
2020-11-27 13:40:40 +08:00
|
|
|
| size | The space size | [Size](#Size) \| [Size\[\]](#Size) | `small` | 4.1.0 \| Array: 4.9.0 |
|
2020-10-08 18:41:40 +08:00
|
|
|
| split | Set split | ReactNode | - | 4.7.0 |
|
2020-11-27 13:40:40 +08:00
|
|
|
| wrap | Auto wrap line, when `horizontal` effective | boolean | false | 4.9.0 |
|
|
|
|
|
|
|
|
### Size
|
|
|
|
|
|
|
|
`'small' | 'middle' | 'large' | number`
|