Expansion Panels
The Whenever using Below is a collection of simple to complex examples. Both the expansion panel and its content can be disabled using the You can allow multiple panels to be open at the same time using the The expansion-panel also has popout design. With it, expansion-panel is enlargened when activated. inset expansion-panel becomes smaller when activated. accordion expansion-panel hasn’t got margins around active panel. Expand action icon can be customized with Expansion panels can be controlled externally by modifying the ExpansionPanel
component is useful for reducing vertical space with large amounts of information. The default functionality of the component is to only display one expansion panel body at a time; however, with the multiple
property, the expansion panel can remain open until explicitly closed. API
Usage
<ExpansionPanel>
make sure that it is a child of <ExpansionPanels>
as it provides basic settings and functionality using setContext. Examples
Disabled
disabled
prop. You can disable a single panel or all the panels. Multiple
multiple
prop. Popout
Inset
Accordion
Custom Icons
icon
slot. External Control
value
prop. Its value corresponds to a zero-based index of the currently opened expansion panel content. It is an array containing the indices of the open items, even if the multiple prop is not used.
Ready For More?
Continue to learn more about svelte materialify with content selected by the creator.