Skip to content
GitHub

Data List

A list of similar data items with labels and values.

New Users
234
Sales
£12,340
Revenue
3,450

Installation

Usage

Orientation

Use the orientation prop to change the orientation of the datalist component.

Horizontal

First Name
Jassie
Last Name
Bhatia
Email
jassie@example.com

Vertical

First Name
Jassie
Last Name
Bhatia
Email
jassie@example.com

Examples

Info Tip

Render the Hint component within DataListItem to provide additional context to the datalist.

New Users
234
Sales
£12,340
Revenue
3,450

Separator

Use the divide-y utility class on DataList to add a separator between items.

First Name
Jassie
Last Name
Bhatia
Email
jassie@example.com
Phone
1234567890
Address
1234 Main St, Anytown, USA

API Reference

DataList

Root wrapper for label-value list layout.

DataListItem

Single label-value row.

DataListItemLabel

Label or key for the row.

DataListItemValue

Value or content for the row.