Component
A composable key-value list for displaying structured data like user profiles, metadata, or settings.
View component changelog- Name
- Jane Doe
- Role
- Senior Engineer
- Location
- San Francisco, CA
Import all parts of the component and piece them together
The root DataList container. Wraps all items and controls the size of the list.
| Prop | Type | Default | Description |
|---|---|---|---|
size | string | "" | Controls font size and row gap. One of: small, medium, large. |
customRootClass | string | "" | Overrides the Theme classNamespace for this component only. |
className | string | "" | Additional CSS classes applied to the root element. |
A single key-value row. Renders as a CSS subgrid row spanning both label and value columns.
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | "" | Additional CSS classes applied to the item element. |
The label part of a key-value pair. Renders as a <dt> element. Supports an independent accent color.
| Prop | Type | Default | Description |
|---|---|---|---|
color | string | "" | Accent color applied to this label only, independent of the root. Sets data-rad-ui-accent-color on the element. |
className | string | "" | Additional CSS classes applied to the label element. |
The value part of a key-value pair. Renders as a <dd> element.
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | "" | Additional CSS classes applied to the value element. |
Examples
size: small
- Name
- Jane Doe
- Role
- Senior Engineer
- Location
- San Francisco, CA
size: medium
- Name
- Jane Doe
- Role
- Senior Engineer
- Location
- San Francisco, CA
size: large
- Name
- Jane Doe
- Role
- Senior Engineer
- Location
- San Francisco, CA
label color: blue
- Name
- Jane Doe
- Role
- Senior Engineer
- Location
- San Francisco, CA
label color: green
- Name
- Jane Doe
- Role
- Senior Engineer
- Location
- San Francisco, CA
label color: red
- Name
- Jane Doe
- Role
- Senior Engineer
- Location
- San Francisco, CA
label color: purple
- Name
- Jane Doe
- Role
- Senior Engineer
- Location
- San Francisco, CA