2019-05-22 23:22:09 +08:00
---
category: Components
type: Data Display
2019-12-18 12:09:05 +08:00
title: Descriptions
2019-05-22 23:22:09 +08:00
cols: 1
2020-05-31 11:48:34 +08:00
cover: https://gw.alipayobjects.com/zos/alicdn/MjtG9_FOI/Descriptions.svg
2019-05-22 23:22:09 +08:00
---
Display multiple read-only fields in groups.
## When To Use
Commonly displayed on the details page.
## API
### Descriptions
2019-07-11 14:14:33 +08:00
| Property | Description | Type | Default | Version |
| --- | --- | --- | --- | --- |
2020-07-01 22:37:55 +08:00
| bordered | Whether to display the border | boolean | false | |
2020-10-21 10:33:43 +08:00
| colon | Change default props `colon` value of Descriptions.Item | boolean | true | |
2020-07-01 22:37:55 +08:00
| column | The number of `DescriptionItems` in a row,could be a number or a object like `{ xs: 8, sm: 16, md: 24}` ,(Only set `bordered={true}` to take effect) | number | 3 | |
2020-10-21 10:33:43 +08:00
| extra | The action area of the description list, placed at the top-right | ReactNode | - | 4.5.0 |
2020-01-17 17:23:48 +08:00
| layout | Define description layout | `horizontal` \| `vertical` | `horizontal` | |
2020-10-21 10:33:43 +08:00
| size | Set the size of the list. Can be set to `middle` ,`small`, or not filled | `default` \| `middle` \| `small` | - | |
| title | The title of the description list, placed at the top | ReactNode | - | |
2019-05-22 23:22:09 +08:00
### DescriptionItem
2020-10-21 10:33:43 +08:00
| Property | Description | Type | Default | Version |
| --- | --- | --- | --- | --- |
2020-11-20 13:41:58 +08:00
| contentStyle | Customize label style | CSSProperties | - | 4.9.0 |
2020-10-21 10:33:43 +08:00
| label | The description of the content | ReactNode | - | |
2020-11-20 13:41:58 +08:00
| labelStyle | Customize label style | CSSProperties | - | 4.9.0 |
2020-10-21 10:33:43 +08:00
| span | The number of columns included | number | 1 | |
2019-08-16 10:01:46 +08:00
> The number of span Description.Item. Span={2} takes up the width of two DescriptionItems.
2020-11-20 13:41:58 +08:00
> When both `style` and `labelStyle`(or `contentStyle`) configured, both of them will work. And next one will overwrite first when conflict.