Accordion

Accordion is a list where each item can be expanded or collapsed. Accordion allows you to create easy navigation for pages with a lot of content.

To create an accordion, use the nested div elements:
<div data-block="accordion">
   <div data-block="item" ...>...</div>
   ...
</div>


<div data-block="accordion">
   <div data-block="item" data-title="Moscow">First block content</div>
   <div data-block="item" data-title="Saint Petersburg" data-expanded="true">Second block content</div>
</div>

The attributes of the nested <div data-block="feed-item">:

Attribute Description
data-title * Name of the list item.
data-expanded

Displays the element expanded. Possible values:

  • true — The element is displayed expanded.
  • false — The element is displayed collapsed.

By default, all elements are collapsed.

*Required attribute.