mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 13:09:40 +08:00
94f2ae9e87
* feat: Space add wrap
* improve
* fix
* Update index.tsx
* change doc
* change docs
* change docs
* 😂
* improve
* change doc
* improve code
* Update Item.tsx
775 B
775 B
category | type | title | cols | cover |
---|---|---|---|---|
Components | Layout | Space | 1 | 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 | Size | Size[] | small |
4.1.0 | Array: 4.9.0 |
split | Set split | ReactNode | - | 4.7.0 |
wrap | Auto wrap line, when horizontal effective |
boolean | false | 4.9.0 |
Size
'small' | 'middle' | 'large' | number