Etch component
Details List 1
A list of details, such as an address, phone, email and hours. Each row is a Details Item 1 in its slot, and Layout sets them Stacked, with Labels Beside or In a Row.
Documentation
A list of details, such as an address, phone, email and hours, or an event's date, time and place. Each row is a MAC Details Item 1.
How to use it
- Put MAC Details Item 1s in its slot, one per row. The pasted list comes with four sample rows to edit.
- Layout sets how the rows read: Stacked puts each label above its value, Labels Beside puts it to the left of the value, and In a Row sets the rows side by side, for a band or a footer bar.
- Put only Details Item 1s in the slot, or a loop of them: a list of details takes nothing else.
Good to know
- The variables are set on the list and reach every row:
--mac-details-list-1-gap(the space between rows),--mac-details-list-1-icon-color,--mac-details-list-1-label-color,--mac-details-list-1-value-colorand--mac-details-list-1-label-width(the label's width in Labels Beside, 6em). - Icons sit on the first line of their row, so a long address on two lines keeps its icon at the top.
- For a site's own fields, such as office hours in a repeater, loop over them in the slot with one Details Item 1 inside.
Reference
Read from the component's JSON, so it's always current.
Loading the reference