This is a container element that holds the contents of the accordion control
It creates a <ul>
tag (Accordion) that will hold N number of <li>
tags
(AccordionItem).
An accordion control contains N number of AccordionItems. The AccordionItem will display/hide their contents when the header of that AccordionItem item is clicked.
import {Accordion} from 'gadgets';
<Accordion>
<AccordionItem ... />
...
</Accordion>
None
ui-accordion
- Applied to the<ul>
tag for the list. This is the top level of the control.
children=null {React.ReactNode}
- the children nodes contained within this container. Generally this will beAccordionItem
controls.