Accordion content goes here
Accordion content goes here
Accordion content goes here
Accordions contain groups of screen elements that can be hidden and revealed independently of each other.
Also known as: arrow toggle, collapse, collapsible, details, disclosure, expand/collapse, exapandable section, expander, expansion panel, show/hide, spoiler
Accordion content goes here
Accordion content goes here
Accordion content goes here
<bolt-accordion-group header="Accordion group name">
<bolt-accordion header="Accordion number one">
<p>Accordion content goes here</p>
</bolt-accordion>
<bolt-accordion header="Accordion number two">
<p>Accordion content goes here</p>
</bolt-accordion>
<bolt-accordion header="Accordion number three">
<p>Accordion content goes here</p>
</bolt-accordion>
</bolt-accordion-group>
Accordion content goes here
Accordion content goes here
Accordion content goes here
<bolt-accordion-group header="Accordion group name" showtoggle>
<bolt-accordion header="Accordion number one">
<p>Accordion content goes here</p>
</bolt-accordion>
<bolt-accordion header="Accordion number two">
<p>Accordion content goes here</p>
</bolt-accordion>
<bolt-accordion header="Accordion number three">
<p>Accordion content goes here</p>
</bolt-accordion>
</bolt-accordion-group>
When using the Bolt background color classes for containers, accordions will take on the appropriate foreground color by default.
Accordion content goes here
Accordion content goes here
Accordion content goes here
<div class="bolt-background-vibrantBlue">
<bolt-accordion-group header="Accordion group name">
<bolt-accordion header="Accordion number one">
<p>Accordion content goes here</p>
</bolt-accordion>
<bolt-accordion header="Accordion number two">
<p>Accordion content goes here</p>
</bolt-accordion>
<bolt-accordion header="Accordion number three">
<p>Accordion content goes here</p>
</bolt-accordion>
</bolt-accordion-group>
</div>
Accordion content goes here
Accordion content goes here
Accordion content goes here
<bolt-accordion-group header="Accordion group name">
<div slot="bodytext">Accordion group body text goes here</div>
<bolt-accordion header="Accordion number one">
<p>Accordion content goes here</p>
</bolt-accordion>
<bolt-accordion header="Accordion number two">
<p>Accordion content goes here</p>
</bolt-accordion>
<bolt-accordion header="Accordion number three">
<p>Accordion content goes here</p>
</bolt-accordion>
</bolt-accordion-group>
Accordion content goes here
Accordion content goes here
Accordion content goes here
<bolt-accordion-group header="Accordion group name" showtoggle>
<div slot="bodytext">Accordion group body text goes here</div>
<bolt-accordion header="Accordion number one">
<p>Accordion content goes here</p>
</bolt-accordion>
<bolt-accordion header="Accordion number two">
<p>Accordion content goes here</p>
</bolt-accordion>
<bolt-accordion header="Accordion number three">
<p>Accordion content goes here</p>
</bolt-accordion>
</bolt-accordion-group>
Accordions consist of the bolt-accordion-group and bolt-accordion components. Both must be used together.
The bolt-accordion-group groups together a set of accordions.
header (required): A label for the group of accordions displayed above the first accordion.showtoggle (optional): If present, displays the "Open all" / "Close all" toggle control beside the header.bodytext (optional): If present, displays supporting body text below the heading.
close(index): closes a <bolt-accordion> at the given indexcloseAll(): closes all <bolt-accordion> children
open(index): opens a <bolt-accordion> at the given indexopenAll(): opens all <bolt-accordion> children
bolt-accordion-group-close-all: fires after closeAll()bolt-accordion-group-open-all: first after openAll()The bolt-accordion holds the content for an accordion.
header: required. The label for the accordion.active: optional. If present, the accordion content is expanded. This parameter can also be set via Javascript as a boolean.open(): opens the accordionclose(): closes the accordiontoggle(): opens accordion, if closed, and vice versabolt-accordion-close
close() or when toggle() closes the accordion<bolt-accordion-group>bolt-accordion-open
open() or when toggle() opens the accordion<bolt-accordion-group>When using the accordion on background colors, assure there is proper contrast.
All Bolt components have gone through accessibility testing, but please keep our accessibility guidelines in mind.