Definition List
Useful for displaying key-value pairs, ideal for glossaries, opening times, etc.
---
block:
_bookshop_name: elements/definition-list
items:
- title: Monday
content: 8am - 5pm
- title: Tuesday
content: 8am - 5pm
- title: Wednesday
content: 8am - 4.30pm
- title: Thursday
content: 9am - 4.45pm
- title: Friday
content: 9am - 5pm
- title: Saturday
content: Not open
- title: Sunday
content: Not open
options:
horizontal_gap: m
vertical_gap: null
margin:
top: null
bottom: null
---
{% bookshop "{{block._bookshop_name}}" bind: block %}
Properties
itemsobject array
Items for the Definition List
titlestring
The title for this item
contentstring
The content for this item
optionsobject
Configuration options for the definition list
horizontal_gapenum
The gap between the title and content.
none |
|
xs |
|
s |
|
m |
|
l |
|
xl |
|
2xl |
vertical_gapenum
The gap above and below each item.
none |
|
xs |
|
s |
|
m |
|
l |
|
xl |
|
2xl |
marginobject
The margin around the definition list.
topenum
The top margin size.
none |
|
xs |
|
s |
|
m |
|
l |
|
xl |
|
2xl |
bottomenum
The bottom margin size.
none |
|
xs |
|
s |
|
m |
|
l |
|
xl |
|
2xl |