logoNamu Design

⌘ K
  • Design
  • Development
  • Components
  • Blog
  • Resources
1.0.0
  • Components Overview
  • General
    • Button
    • FloatButtonNew
    • Icon
    • Typography
  • Layout
    • Divider
    • Grid
    • Layout
    • Space
  • Navigation
    • Anchor
    • Breadcrumb
    • Dropdown
    • Menu
    • Pagination
    • Steps
  • Data Entry
    • AutoComplete
    • Cascader
    • Checkbox
    • ColorPickerNew
    • 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
    • Popover
    • QRCodeNew
    • Segmented
    • Statistic
    • Table
    • Tabs
    • Tag
    • Timeline
    • Tooltip
    • TourNew
    • Tree
  • Feedback
    • Alert
    • Drawer
    • Message
    • Modal
    • Notification
    • Popconfirm
    • Progress
    • Result
    • Skeleton
    • Spin
    • Watermark
  • Other
    • Affix
    • AppNew
    • ConfigProvider
When To Use
Examples
Basic
border
Custom size
responsive
Vertical
Vertical border
API
Descriptions
DescriptionItem
Design Token

Descriptions

  • CollapseEmpty

    Resources

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

    Community

    Awesome Namu Design
    Medium
    Twitter
    yuqueNamu Design in YuQue
    Namu Design in Zhihu
    Experience Cloud Blog
    seeconfSEE Conf-Experience Tech Conference

    Help

    GitHub
    Change Log
    FAQ
    Bug Report
    Issues
    Discussions
    StackOverflow
    SegmentFault

    Ant XTechMore Products

    yuqueYuQue-Document Collaboration Platform
    AntVAntV-Data Visualization
    EggEgg-Enterprise Node.js Framework
    kitchenKitchen-Sketch Toolkit
    xtechAnt Financial Experience Tech
    Theme Editor
    Made with ❤ by
    Ant Group and Namu Design Community

    Display multiple read-only fields in groups.

    When To Use

    Commonly displayed on the details page.

    // 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

    Basic

    Simplest Usage.

    expand codeexpand code
    border

    Descriptions with border and background color.

    expand codeexpand code
    Custom size

    Custom sizes to fit in a variety of containers.

    expand codeexpand code
    responsive

    Responsive configuration enables perfect presentation on small screen devices.

    expand codeexpand code
    Vertical

    Simplest Usage.

    expand codeexpand code
    Vertical border

    Descriptions with border and background color.

    expand codeexpand code

    API

    Common props ref:Common props

    Descriptions

    PropertyDescriptionTypeDefaultVersion
    borderedWhether to display the borderbooleanfalse
    colonChange default props colon value of Descriptions.Itembooleantrue
    columnThe 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 | Record<Breakpoint, number>3
    contentStyleCustomize content styleCSSProperties-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-4.10.0
    layoutDefine description layouthorizontal | verticalhorizontal
    sizeSet the size of the list. Can be set to middle,small, or not filleddefault | middle | small-
    titleThe title of the description list, placed at the topReactNode-

    DescriptionItem

    PropertyDescriptionTypeDefaultVersion
    contentStyleCustomize content styleCSSProperties-4.9.0
    labelThe description of the contentReactNode-
    labelStyleCustomize label styleCSSProperties-4.9.0
    spanThe number of columns includednumber1

    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.

    Design Token

    Component Token

    Global Token

    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
    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