mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-03 16:39:41 +08:00
23 lines
633 B
Markdown
23 lines
633 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` | - | 4.2.0 |
|
|
| direction | The space direction | `vertical` \| `horizontal` | `horizontal` | 4.1.0 |
|
|
| size | The space size | `small` \| `middle` \| `large` \| number | `small` | 4.1.0 |
|
|
| split | Set split | ReactNode | - | 4.7.0 |
|