0.1.2 • Published 7 years ago

react-simple-collapse v0.1.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

react-simple-collapse Build Status npm version

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