logoAnt Design

⌘ K
  • Design
  • Development
  • Components
  • Blog
  • Resources
6.0.0-alpha.3
  • Components Overview
  • Changelog
    v6.0.0-alpha.3
  • General
    • Button
    • FloatButton
      5.0.0
    • Icon
    • Typography
  • Layout
    • Divider
    • Flex
      5.10.0
    • Grid
    • Layout
    • Masonry
      6.0.0
    • Space
    • Splitter
      5.21.0
  • Navigation
    • Anchor
    • Breadcrumb
    • Dropdown
    • Menu
    • Pagination
    • Steps
    • Tabs
  • Data Entry
    • AutoComplete
    • Cascader
    • Checkbox
    • ColorPicker
      5.5.0
    • DatePicker
    • Form
    • Input
    • InputNumber
    • Mentions
    • Radio
    • Rate
    • Select
    • Slider
    • Switch
    • TimePicker
    • Transfer
    • TreeSelect
    • Upload
  • Data Display
    • Avatar
    • Badge
    • Calendar
    • Card
    • Carousel
    • Collapse
    • Descriptions
    • Empty
    • Image
    • List
      DEPRECATED
    • Popover
    • QRCode
      5.1.0
    • Segmented
    • Statistic
    • Table
    • Tag
    • Timeline
    • Tooltip
    • Tour
      5.0.0
    • Tree
  • Feedback
    • Alert
    • Drawer
    • Message
    • Modal
    • Notification
    • Popconfirm
    • Progress
    • Result
    • Skeleton
    • Spin
    • Watermark
      5.1.0
  • Other
    • Affix
    • App
      5.1.0
    • ConfigProvider
    • Util
When To Use
Examples
Basic
border
Custom size
responsive
Vertical
Vertical border
Custom semantic dom styling
row
API
Descriptions
DescriptionItem
Semantic DOM
Design Token

Descriptions

Display multiple read-only fields in a group.
Importimport { Descriptions } from "antd";
GitHub
components/descriptionsIssueOpen issues
Docs
Edit this page
contributors
CollapseEmpty

Resources

Ant Design X
Ant Design Charts
Ant Design Pro
Pro Components
Ant Design Mobile
Ant Design Mini
Ant Design Web3
Ant Design Landing-Landing Templates
Scaffolds-Scaffold Market
Umi-React Application Framework
dumi-Component doc generator
qiankun-Micro-Frontends Framework
Ant Motion-Motion Solution
China Mirror 🇨🇳

Community

Awesome Ant Design
Medium
X
yuque logoAnt Design in YuQue
Ant Design in Zhihu
Experience Cloud Blog
seeconf logoSEE Conf-Experience Tech Conference

Help

GitHub
Change Log
FAQ
Bug Report
Issues
Discussions
StackOverflow
SegmentFault

Ant XTech logoMore Products

yuque logoYuQue-Document Collaboration Platform
AntV logoAntV-Data Visualization
Egg logoEgg-Enterprise Node.js Framework
Kitchen logoKitchen-Sketch Toolkit
Galacean logoGalacean-Interactive Graphics Solution
WeaveFox logoWeaveFox-AI Development with WeaveFox 🦊
xtech logoAnt Financial Experience Tech
Theme Editor
Made with ❤ by
Ant Group and Ant Design Community
loading

When To Use

Commonly displayed on the details page.

tsx
// works when >= 5.8.0, recommended ✅
const items: DescriptionsProps['items'] = [
{
key: '1',
label: 'UserName',
children: <p>Zhou Maomao</p>,
},
{
key: '2',
label: 'Telephone',
children: <p>1810000000</p>,
},
{
key: '3',
label: 'Live',
children: <p>Hangzhou, Zhejiang</p>,
},
{
key: '4',
label: 'Remark',
children: <p>empty</p>,
},
{
key: '5',
label: 'Address',
children: <p>No. 18, Wantang Road, Xihu District, Hangzhou, Zhejiang, China</p>,
},
];
<Descriptions title="User Info" items={items} />;
// works when <5.8.0 , deprecated when >=5.8.0 🙅🏻‍♀️
<Descriptions title="User Info">
<Descriptions.Item label="UserName">Zhou Maomao</Descriptions.Item>
<Descriptions.Item label="Telephone">1810000000</Descriptions.Item>
<Descriptions.Item label="Live">Hangzhou, Zhejiang</Descriptions.Item>
<Descriptions.Item label="Remark">empty</Descriptions.Item>
<Descriptions.Item label="Address">
No. 18, Wantang Road, Xihu District, Hangzhou, Zhejiang, China
</Descriptions.Item>
</Descriptions>;

Examples

API

Common props ref:Common props

Descriptions

PropertyDescriptionTypeDefaultVersion
borderedWhether to display the borderbooleanfalse
classNamesCustomize class for each semantic structure inside the component. Supports object or function.Record<SemanticDOM, string> | (info: { props })=> Record<SemanticDOM, string>-
colonChange default props colon value of Descriptions.Item. Indicates whether the colon after the label is displayedbooleantrue
columnThe number of DescriptionItems in a row, could be an object (like { xs: 8, sm: 16, md: 24}, but must have bordered={true}) or a numbernumber | Record<Breakpoint, number>3
contentStyleCustomize content style, Please use styles.content insteadCSSProperties-4.10.0
extraThe action area of the description list, placed at the top-rightReactNode-4.5.0
itemsDescribe the contents of the list itemDescriptionsItem[]-5.8.0
labelStyleCustomize label styleCSSProperties, Please use styles.label instead-4.10.0
layoutDefine description layouthorizontal | verticalhorizontal
sizeSet the size of the list. Can be set to middle,small, or not filleddefault | middle | small-
stylesCustomize inline style for each semantic structure inside the component. Supports object or function.Record<SemanticDOM, CSSProperties> | (info: { props })=> Record<SemanticDOM, CSSProperties>-
titleThe title of the description list, placed at the topReactNode-

DescriptionItem

PropertyDescriptionTypeDefaultVersion
contentStyleCustomize content style, Please use styles.content insteadCSSProperties-4.9.0
labelThe description of the contentReactNode-
labelStyleCustomize label style, Please use styles.label insteadCSSProperties-4.9.0
spanThe number of columns included(filled Fill the remaining part of the current row)number | filled | Screens1screens: 5.9.0, filled: 5.22.0

The number of span Description.Item. Span={2} takes up the width of two DescriptionItems. When both style and labelStyle(or contentStyle) configured, both of them will work. And next one will overwrite first when conflict.

Semantic DOM

Design Token

Component TokenHow to use?
Token NameDescriptionTypeDefault Value
colonMarginLeftLeft margin of colonnumber2
colonMarginRightRight margin of colonnumber8
contentColorText color of contentstringrgba(0,0,0,0.88)
extraColorText color of extra areastringrgba(0,0,0,0.88)
itemPaddingBottomBottom padding of itemnumber16
itemPaddingEndEnd padding of itemnumber16
labelBgBackground color of labelstringrgba(0,0,0,0.02)
labelColorText color of labelstringrgba(0,0,0,0.45)
titleColorText color of titlestringrgba(0,0,0,0.88)
titleMarginBottomBottom margin of titlenumber20
Global TokenHow to use?
Basic

Simplest Usage.

CodeSandbox Icon
Hitu Icon
codepen icon
External Link Icon
Expand Icon
border

Descriptions with border and background color.

CodeSandbox Icon
Hitu Icon
codepen icon
External Link Icon
Expand Icon
Custom size

Custom sizes to fit in a variety of containers.

CodeSandbox Icon
Hitu Icon
codepen icon
External Link Icon
Expand Icon
responsive

Responsive configuration enables perfect presentation on small screen devices.

CodeSandbox Icon
Hitu Icon
codepen icon
External Link Icon
Expand Icon
Vertical

Simplest Usage.

CodeSandbox Icon
Hitu Icon
codepen icon
External Link Icon
Expand Icon
Vertical border

Descriptions with border and background color.

CodeSandbox Icon
Hitu Icon
codepen icon
External Link Icon
Expand Icon
Custom semantic dom styling

You can customize the semantic dom style of Descriptions by passing objects/functions through classNames and styles.

CodeSandbox Icon
Hitu Icon
codepen icon
External Link Icon
Expand Icon
6.0.0
row

Display of the entire line.

CodeSandbox Icon
Hitu Icon
codepen icon
External Link Icon
Expand Icon
User Info
UserNameZhou Maomao
Telephone1810000000
LiveHangzhou, Zhejiang
Remarkempty
AddressNo. 18, Wantang Road, Xihu District, Hangzhou, Zhejiang, China
User Info
ProductCloud DatabaseBilling ModePrepaidAutomatic RenewalYES
Order time2018-04-24 18:00:00Usage Time2019-04-24 18:00:00
StatusRunning
Negotiated Amount$80.00Discount$20.00Official Receipts$60.00
Config InfoData disk type: MongoDB
Database version: 3.4
Package: dds.mongo.mid
Storage space: 10 GB
Replication factor: 3
Region: East China 1


Custom Size
ProductCloud DatabaseBillingPrepaidTime18:00:00
Amount$80.00Discount$20.00Official$60.00
Config InfoData disk type: MongoDB
Database version: 3.4
Package: dds.mongo.mid
Storage space: 10 GB
Replication factor: 3
Region: East China 1


Custom Size
ProductCloud Database
BillingPrepaid
Time18:00:00
Amount$80.00
Discount$20.00
Official$60.00
Responsive Descriptions
ProductCloud DatabaseBillingPrepaidTime18:00:00
Amount$80.00Discount$20.00Official$60.00
Config InfoData disk type: MongoDB
Database version: 3.4
Package: dds.mongo.mid
Hardware InfoCPU: 6 Core 3.5 GHz
Storage space: 10 GB
Replication factor: 3
Region: East China 1
User Info
UserName
Telephone
Live
Zhou Maomao
1810000000
Hangzhou, Zhejiang
Address
Remark
No. 18, Wantang Road, Xihu District, Hangzhou, Zhejiang, China
empty
User Info
ProductBilling ModeAutomatic Renewal
Cloud DatabasePrepaidYES
Order timeUsage Time
2018-04-24 18:00:002019-04-24 18:00:00
Status
Running
Negotiated AmountDiscountOfficial Receipts
$80.00$20.00$60.00
Config Info
Data disk type: MongoDB
Database version: 3.4
Package: dds.mongo.mid
Storage space: 10 GB
Replication factor: 3
Region: East China 1
User Info
ProductCloud DatabaseBilling ModePrepaidAutomatic RenewalYES
User Info
ProductCloud DatabaseBilling ModePrepaidAutomatic RenewalYES
User Info
UserNameZhou MaomaoLiveHangzhou, Zhejiang
Remarkempty
AddressNo. 18, Wantang Road, Xihu District, Hangzhou, Zhejiang, China
Toggle Border
User Info
Telephone1810000000
  • root
    5.23.0
    Root element with basic styles, reset styles, border styles, layout direction and other overall styles for description list container
  • header
    5.23.0
    Header element with flex layout, alignment, bottom margin and other layout and style controls for header area
  • title
    5.23.0
    Title element with text ellipsis, flex ratio, color, font weight, font size, line height and other title text styles
  • extra
    5.23.0
    Extra content element with left margin, color, font size and other styles for additional operation area
  • label
    5.23.0
    Label element with color, font weight, font size, line height, text align, colon styles and other label text styles
  • content
    5.23.0
    Content element with table cell layout, color, font size, line height, word break and other content display styles