1.0.0 • Published 7 years ago

react-accordion-dropdown v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

React Accordion demo

Build Status Coverage Status

Implementation Guide

1. Installation

npm install --save react-accordion

2. Import Accordion and AccordionPanel and styles to your component.
import {Accordion, AccordionPanel, styles} from 'react-accordion';
3. Add the Accordion and AccordionPanel component to your component (see available props below).
<Accordion accordionId="demo1" arrow="left">
    <AccordionPanel header={Header} content={Content}/>
    <AccordionPanel header={Header} content={Content}/>
</Accordion>

Props

Accordion

PropertyDescriptionDefaultType
accordionIdUnique identifier for the accordion (required)-String
arrowHide close button or notleftString oneOf('left',right','none')

AccordionPanel

PropertyDescriptionDefaultType
headerComponent or HTML for the accordion trigger-React Element or String
contentComponent or HTML for the accordion content-React Element or String