Etch component
Details Item 1
One row of a Details List 1: an icon, a label and a value, such as Phone and a number visitors can tap to call. Hide Label keeps the label for screen readers only.
Documentation
One row of a MAC Details List 1: an icon, a label and a value, such as Phone and a number visitors can tap to call.
How to use it
- Place it in a MAC Details List 1's slot, one item per row.
- Label names the row: Address, Phone, Email, Hours. Hide Label hides it from sight but keeps it for screen readers, for rows the icon already explains, as in a footer.
- Value is what visitors read. With a Link, the value becomes a link:
tel:+12125550100to call,mailto:hello@example.orgto write, or a page's address. - Icon takes a MAC Icons line icon, such as the location pin, phone, email or time clock. Leave it empty for a row without an icon.
- Icon Alignment places the icon: Top, on the first line (the default), or Center, centered on the label and the value together. Set it on each row that needs it.
Good to know
- Write a phone link with the country code and digits only, such as
tel:+12125550100: no spaces or parentheses. - The list sets the layout and the colors of all its rows; see MAC Details List 1.
- For rows from a site's own fields, such as office hours, put a loop in the list's slot with one Details Item 1 inside, and bind Label and Value to the loop's fields.
Reference
Read from the component's JSON, so it's always current.
Loading the reference