@nodestrap/accordion
v4.0.9
Published
Represents a series of toggleable collapsing content.
Downloads
3
Maintainers
Readme
<Accordion></Accordion>
Represents a series of toggleable collapsing content.
Preview
<Accordion' theme='primary' size='lg' gradient={true} outlined={true}>
<AccordionItem label='Intro'>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit</p>
</AccordionItem>
<AccordionItem label='Installation' active={getActive} onActiveChange={(newActive) => setActive(newActive)}>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit</p>
</AccordionItem>
<ListItem theme='danger' label='Usage'>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit</p>
</ListItem>
// ...
</Accordion>
Rendered to:
<ul class="c1 thPrimary szLg gradient outlined">
<li>/* ... */</li>
<li>/* ... */</li>
<li>/* ... */</li>
</ul>
Features
- Includes all features in
<List />
. - Controllable & uncontrollable toggle active.
- Customizable via
@cssfn/css-config
.
Installation
Using npm:
npm i @nodestrap/accordion
Support Us
If you feel our lib is useful for your projects,
please make a donation to avoid our project from extinction.
We always maintain our projects as long as we're still alive.