React Accordion demo
npm install --save react-accordion-dropdown
import {Accordion, AccordionPanel, styles} from 'react-accordion-dropdown';
<Accordion accordionId="demo1" arrow="left">
<AccordionPanel header={Header} content={Content}/>
<AccordionPanel header={Header} content={Content}/>
</Accordion>
Property | Description | Default | Type |
---|---|---|---|
accordionId | Unique identifier for the accordion (required) | - | String |
arrow | Hide close button or not | left | String oneOf('left',right','none') |
Property | Description | Default | Type |
---|---|---|---|
header | Component or HTML for the accordion trigger | - | React Element or String |
content | Component or HTML for the accordion content | - | React Element or String |