display
prop is set to vertical
, List Items are full-width, stacked on one another.display
prop is set to horizontal
, List Items are side by side and take the width of the content. List Items can be of different widths if the content differs in length.display
prop is set to horizontal@[Breakpoint]
, List Items are vertical
below the specified breakpoint (xxsmall
, xsmall
, small
or medium
) and horizontal
above the breakpoint.horizontal@medium
List is horizontal above the chosen breakpoint and vertical below.{% set list_items %}
{% include '@bolt-elements-list/list-item.twig' with {
content: placeholder_1,
} only %}
{% include '@bolt-elements-list/list-item.twig' with {
content: placeholder_2,
} only %}
{% include '@bolt-elements-list/list-item.twig' with {
content: placeholder_3,
} only %}
{% endset %}
{% include '@bolt-elements-list/list.twig' with {
display: 'horizontal',
content: list_items
} only %}
<ul class="e-bolt-list e-bolt-list--display-horizontal">
<li class="e-bolt-list__item">First item</li>
<li class="e-bolt-list__item">Second item</li>
<li class="e-bolt-list__item">Thitd item</li>
</ul>