generic-accordion
WAI ARIA PracticesAn accordion is a vertically stacked set of interactive headings that each contain a title, content snippet, or thumbnail representing a section of content.
API:
name | detail |
---|---|
selected-changed | number |
name | type |
---|---|
selected | number |
name | type |
---|---|
selected | number |
name | description |
---|---|
default | Provide button elements and content nodes as lightdom |
Usage:
The accordion requires a button as trigger, and content elements. You can find an example down below.
Default:
Show code
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Selected:
Show code
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.