Data List
Data List presents repeated term/value metadata with native description-list semantics and responsive Brick recipes.
Built from the published package
- Release
- Brick 0.1.12
- Status
- Ready to verify
- Owners
- 95 components
Know when Data List is the right part
Use it when
Use Data List for profile facts, record metadata, specifications, and related attributes describing one object. It owns visible labels, values, a shared label measure, optional separators, and vertical or horizontal composition.
Choose another path when
Use List for peer items, Table or Data Grid for columnar datasets, and Field or Fieldset for editable values. Do not use Group or generic Stack rows to approximate description-list semantics.
Installation and imports
For a measured route-aware build, load the foundation once and the component stylesheet:
Do not combine modular styles with styles.css or tokens.css.
Quick start
Visual recipes and states
Size selects type and rhythm. Horizontal orientation aligns each Item into a
label and value grid; vertical orientation stacks them. divide adds semantic
border paint between Items without changing source order or anatomy.
Examples
API
Start with the public parts and root options below. Components with multiple parts separate each area into its own named subsection.
| Part or prop | Values | Default |
|---|---|---|
size | sm, md, lg | md |
orientation | responsive vertical, horizontal | vertical |
labelWidth | auto, sm, md, lg | auto |
divide | boolean | false |
slot | string | data-list-root |
| Parts | Root, Item, Label, Value | — |
Public exports are DataList, DataListRoot, DataListRootProps,
DataListItem, DataListItemProps, DataListLabel, DataListLabelProps,
DataListValue, DataListValueProps, DataListSize,
DataListOrientation, and DataListLabelWidth.
Accessibility
Native dl, dt, and dd semantics describe the relationship without ARIA
repair. Every Item needs meaningful visible Label and Value content. Links and
other content inside Value retain their own native behavior.
Responsive behavior
Orientation accepts Brick responsive values. Keep one Label-then-Value source tree and switch only presentation. Long values wrap and horizontal layouts return to a vertical composition at the authored narrow breakpoint.
Styling and tokens
Customization
Prefer size, orientation, labelWidth, and divide before changing public
variables. Use native className or style only for a deliberate local
relationship. Do not restyle private descendants or add redundant ARIA roles.
Tokens and CSS hooks
Stable hooks are .brick-data-list, .brick-data-list__item,
.brick-data-list__label, .brick-data-list__value, and their data-slot
values. Root exposes data-divide, data-label-width, data-orientation,
data-size, and data-slot. Public variables include --brick-data-list-gap,
--brick-data-list-item-gap, --brick-data-list-label-size,
--brick-data-list-divider-color.
Advanced reference
Open these details only when you need to inspect DOM ownership, native forwarding, or lower-level composition.