Data | PropertyList
PropertyList#
Description#
Component that displays a list of properties (label-value pairs) in a semantic <dl> element, with three layouts and a slot for custom values.
Props#
items(readonly PropertyItem[]) — List of label-value pairs. Required.layout('grid' | 'rows' | 'inline') — List layout. Default:'grid'.
Slots#
value(props: { item: PropertyItem; index: number }) — Customizes the value presentation of each item.
Usage#
| |
Notes#
layoutswitches between:grid(label above value on narrow screens),rows(rows with dividers) andinline(pairs in a line).- The
PropertyIteminterface includes an optionalidfor when two labels repeat. - Long values wrap across multiple lines without pushing the container width.