DataList
DataList displays a set of label/value pairs, such as user details or metadata, in a clean, aligned layout. Compose items with
DataList.Item, DataList.ItemLabel, and DataList.ItemValue, or pass a data array for a quick setup.Examples
(5)Properties
(24)Playground
Basic Usage
Compose
DataList.Item with DataList.ItemLabel and DataList.ItemValue to render aligned label/value pairs.Vertical Orientation
Set
orientation="vertical" to stack each label above its value — useful for longer values or narrow layouts.Dividers & Aligned Labels
Enable
withDivider to separate items with a border, and set labelWidth to keep the value column aligned.Sizes
Use the
size prop (xs–3xl, or a number) to scale font size and spacing together.Data Prop Shorthand
Skip the composition and pass a
data array of { label, value } objects to render items automatically.Scan to open this page on your phonereact-ui-library.com/components/DataList
</>
react-ui-library
100+ accessible, themeable components that work seamlessly across iOS, Android, and Web.
A Platform Blocks product.
Quick Links
Resources