How to create a accordion layout ?

Undraw Website Builder Re Ii6e

About

accordion is a UI component that lays out panels in an accordion fashion that toggle (collapse or expand) when clicked.

You can also choose tabs as other navigational collapsible layout for panels.

Example

By default, panels are collpased, if you don't want, you need to set it explicitly to false.

<accordion>
    <panel collapsed="false">
        <label>Collapsible Group Item #1</label>
        Some placeholder content for the first accordion card. This card is shown by default because of the ''collapsed'' attribute.
    </panel>
    <panel>
        <label><icon name="hamburger"/> Menu</label>
        === With Hamburger Icon ===
        You can use all syntaxes inside a label [[:docs:content:icon|icon included]]
    </panel>
</accordion>

Some placeholder content for the first accordion card. This card is shown by default because of the collapsed attribute.

With Hamburger Icon

You can use all syntaxes inside a label icon included




Showcase yourself and your brand

Get free news, tips, and tricks
to create a remarkable experience for your readers.




Recommended Pages
Undraw My Documents
Collapse or expand any component with the toggle effect

The toggleTargetId is an attribute that transform a link or a button in a toggle element
Undraw My Documents
ComboStrap UI - Collapse

collapse is a menubar component that will collapse its children on a smaller screen making them only visible by clicking on the sandwich icon. the toggle the accordion All the element that are...
Undraw Website Builder Re Ii6e
Layout components of Combostrap

A layout component is a component that laid out other components. This page lists the layout component of ComboStrap
Page Explorer List Name To Ui Region
Page-explorer: adding page navigation easily to your website

With the page-explorer component, you can add an explorer like panel that will list your pages in a list or collapsible tree fashion
Undraw Website Builder Re Ii6e
Panel: A component layout in tabs or accordion

A panel is a UI component that you can used in a tabs or accordion
Undraw Website Builder Re Ii6e
Tabs: layout panels in tab

A tabs is an layout, interactive and navigational element that is composed of a a serie of tab that, when activated, displays their associated panel.
Undraw My Documents
What are the Navigational components in Combostrap?

How to improve the navigation of your website with the navigational components



Task Runner