By default, all <BaseAccordion> items can be open at the same time.
Accordion Item 1
Accordion Item 1
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quo tandem modo? Inde igitur, inquit, ordiendum est. Primum quid tu dicis breve? Duo Reges: constructio interrete.
Accordion Item 2
Accordion Item 2
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quo tandem modo? Inde igitur, inquit, ordiendum est. Primum quid tu dicis breve? Duo Reges: constructio interrete.
Accordion Item 3
Accordion Item 3
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quo tandem modo? Inde igitur, inquit, ordiendum est. Primum quid tu dicis breve? Duo Reges: constructio interrete.
Show codeHide code
You can set the exclusive
property to true
to force only one item to be open at a time.
Accordion Item 1
Accordion Item 1
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quo tandem modo? Inde igitur, inquit, ordiendum est. Primum quid tu dicis breve? Duo Reges: constructio interrete.
Accordion Item 2
Accordion Item 2
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quo tandem modo? Inde igitur, inquit, ordiendum est. Primum quid tu dicis breve? Duo Reges: constructio interrete.
Accordion Item 3
Accordion Item 3
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quo tandem modo? Inde igitur, inquit, ordiendum est. Primum quid tu dicis breve? Duo Reges: constructio interrete.
Show codeHide code
You can change the shape of the accordion with the rounded
property.
Accordion Item 1
Accordion Item 1
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quo tandem modo? Inde igitur, inquit, ordiendum est. Primum quid tu dicis breve? Duo Reges: constructio interrete.
Accordion Item 2
Accordion Item 2
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quo tandem modo? Inde igitur, inquit, ordiendum est. Primum quid tu dicis breve? Duo Reges: constructio interrete.
Accordion Item 3
Accordion Item 3
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quo tandem modo? Inde igitur, inquit, ordiendum est. Primum quid tu dicis breve? Duo Reges: constructio interrete.
Accordion Item 1
Accordion Item 1
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quo tandem modo? Inde igitur, inquit, ordiendum est. Primum quid tu dicis breve? Duo Reges: constructio interrete.
Accordion Item 2
Accordion Item 2
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quo tandem modo? Inde igitur, inquit, ordiendum est. Primum quid tu dicis breve? Duo Reges: constructio interrete.
Accordion Item 3
Accordion Item 3
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quo tandem modo? Inde igitur, inquit, ordiendum est. Primum quid tu dicis breve? Duo Reges: constructio interrete.
Accordion Item 1
Accordion Item 1
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quo tandem modo? Inde igitur, inquit, ordiendum est. Primum quid tu dicis breve? Duo Reges: constructio interrete.
Accordion Item 2
Accordion Item 2
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quo tandem modo? Inde igitur, inquit, ordiendum est. Primum quid tu dicis breve? Duo Reges: constructio interrete.
Accordion Item 3
Accordion Item 3
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quo tandem modo? Inde igitur, inquit, ordiendum est. Primum quid tu dicis breve? Duo Reges: constructio interrete.
Accordion Item 1
Accordion Item 1
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quo tandem modo? Inde igitur, inquit, ordiendum est. Primum quid tu dicis breve? Duo Reges: constructio interrete.
Accordion Item 2
Accordion Item 2
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quo tandem modo? Inde igitur, inquit, ordiendum est. Primum quid tu dicis breve? Duo Reges: constructio interrete.
Accordion Item 3
Accordion Item 3
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quo tandem modo? Inde igitur, inquit, ordiendum est. Primum quid tu dicis breve? Duo Reges: constructio interrete.
Show codeHide code
<BaseAccordion> accepts an action
property that you can use to change the icon of the accordion. By default, it uses the dot
icon, but you can use chevron
or plus
as well.
Here is an example of an accordion with action="chevron"
.
Accordion Item 1
Accordion Item 1
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quo tandem modo? Inde igitur, inquit, ordiendum est. Primum quid tu dicis breve? Duo Reges: constructio interrete.
Accordion Item 2
Accordion Item 2
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quo tandem modo? Inde igitur, inquit, ordiendum est. Primum quid tu dicis breve? Duo Reges: constructio interrete.
Accordion Item 3
Accordion Item 3
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quo tandem modo? Inde igitur, inquit, ordiendum est. Primum quid tu dicis breve? Duo Reges: constructio interrete.
Show codeHide code
<BaseAccordion> accepts an action
property that you can use to change the icon of the accordion. By default, it uses the dot
icon, but you can use chevron
or plus
as well.
Here is an example of an accordion with action="plus"
.
Accordion Item 1
Accordion Item 1
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quo tandem modo? Inde igitur, inquit, ordiendum est. Primum quid tu dicis breve? Duo Reges: constructio interrete.
Accordion Item 2
Accordion Item 2
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quo tandem modo? Inde igitur, inquit, ordiendum est. Primum quid tu dicis breve? Duo Reges: constructio interrete.
Accordion Item 3
Accordion Item 3
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quo tandem modo? Inde igitur, inquit, ordiendum est. Primum quid tu dicis breve? Duo Reges: constructio interrete.
Show codeHide code
items
Show exampleHide example
classes
Show exampleHide example
exclusive
Show exampleHide example
open-items
Show exampleHide example
color
@since
3.0.0
Show exampleHide example
rounded
@since
2.0.0
Show exampleHide example
action
Show exampleHide example
dot-color
@since
3.0.0
Show exampleHide example
#accordion-item
Show exampleHide example
#accordion-item-summary
Show exampleHide example
#accordion-item-content