-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Collapse
Sanya Boriskin edited this page Aug 5, 2019
·
10 revisions
- va-accordion
- va-collapse
Accordion is a component which organizes content within collapsable items. Accordions can toggle through a number of text blocks with a single click.
<va-accordion>
<va-collapse>
<span slot="header"> Expand This Block </span>
<div slot="body">
Expand first content
</div>
</va-collapse>
<!-- va-collapse items -->
</va-accordion>
Collapse is a component which provides possibility to toggle the visibility of content across your project.
<va-collapse>
<span slot="header"> Expand This Block </span>
<div slot="body">
<div>
Expand first content
</div>
</div>
</va-collapse>
-
isOpenDefault
- Boolean (default: false) - open collapse by default -
withBackground
- Boolean (default: false) - add background color to collapse content -
customHeader
- Boolean (default: false) - add possibility to set your custom header (for example button)