react-simple-collapse
v0.1.2
Published
Simple DIV with expanable/collapsible feature using prop (no dependency)
Downloads
35
Maintainers
Readme
react-simple-collapse
Installation
npm install react-simple-collapse --save
Usage
<Expandable
duration={ 300 }
shouldExpanded={ true | false }
onExpandStart={ ()=> {console.log('div is started expending')} }
onExpandEnd={ ()=> {console.log('div is expended')} }
onCollapseStart={ ()=> {console.log('div is started collapsing')} }
onCollapseEnd={ ()=> {console.log('div is hidden now')} }
>
<div>I am expanded div</div>
</Expandable>
Liscense
MIT