Data List

Displays metadata as a list of key-value pairs.

Name
Jane Roe
Email
jane.roe@foo-corp.com
Organization
Foo Corp

The Data List component is made up of Root, Item, Label, and Data parts. View source

Lists Item parts and controls the orientation.

PropTypeDefault
sizeResponsive<"1" | "2" | "3">"2"
trimResponsive<"normal" | "start" | "end" | "both"
orientationResponsive<"horizontal" | "vertical">"horizontal"

This component is based on the dl element and supports common margin props m, mx, my, ml, mr, mt, mb.

Groups Label and Data parts, and controls the vertical alignment between them.

PropTypeDefault
alignResponsive<"baseline" | "start" | "center" | "end" | "stretch">

This component is based on the div element.

Displays a text caption associated with the Item.

PropTypeDefault
widthstring
minWidthstring
maxWidthstring

This component is based on the dt element.

Displays the value associated with the Item. This component is based on the dd element.

By default, the Label and Data are baseline-aligned.

Use the align prop on the Item part to set a different alignment style. You can change it across breakpoints using the object syntax.

Status
Active
Name
Jane Roe
Email
jane.roe@foo-corp.com
Authentication

Use the orientation prop to control how Label and Data are arranged.

Name
Jane Roe
Email
jane.roe@foo-corp.com
Organization
Foo Corp

You can change the orientation value across breakpoints using the object syntax.

Name
Jane Roe
Email
jane.roe@foo-corp.com
Organization
Foo Corp

Use the size prop to control the text size of the component.

Name
Jane Roe
Email
jane.roe@foo-corp.com
Organization
Foo Corp
Name
Jane Roe
Email
jane.roe@foo-corp.com
Organization
Foo Corp
Name
Jane Roe
Email
jane.roe@foo-corp.com
Organization
Foo Corp

Use the width, minWidth, and maxWidth props on the Label part to control the width of the labels.

Name
Jane Roe
Email
jane.roe@foo-corp.com
Organization
Foo Corp