Materialize CSS CollapsibleCollapsible or accordion is used to get various predefined visuals and behavioral enhancements to display various types of accordions. Materialize CSS provides different CSS classes to apply these collapsible. Index | Class name | Description |
---|
| collapsible | It is used to identify an element as a materialize collapsible component. Required for ul element. | | collapsible-header | It is used to set div as a section header. | | collapsible-body | It is used to set div as a section content container. | | popout | It is used to create a popout collapsible. | | active | It is used to open a section. | | expandable | It is used to mark a collapsible component as expandable. | | accordion | It is used to mark a collapsible component as accordion. |
ExampleLet's take an example to demonstrate collapsible in Materialize CSS: Test it NowOutput:
|