mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-02 07:39:36 +08:00
b8109bd20e
* feat: new component: Space * add config-provider space doc * fix lint fail * revert test -u * improve demo * compatible invalidElement * use inline-flex and wrap * review change * add space version * improve classname * review change * review change
20 lines
429 B
Markdown
20 lines
429 B
Markdown
---
|
|
category: Components
|
|
type: Layout
|
|
title: Space
|
|
cols: 1
|
|
---
|
|
|
|
Set components spacing.
|
|
|
|
## When To Use
|
|
|
|
Avoid components clinging together and set a unified space.
|
|
|
|
## API
|
|
|
|
| Property | Description | Type | Default | Version |
|
|
| --- | --- | --- | --- | --- |
|
|
| size | space size | `small` \| `middle` \| `large` \| `number` | `small` | 4.1.0 |
|
|
| direction | space direction | `vertical` \| `horizontal` | `horizontal` | 4.1.0 |
|