React Reuseable Component that allows toggling between a given thumbnail view and a detail view.
npm i --save onesie-toggle-environment-block
####ES5
var ClusterToggleView = require('onesie-toggle-environment-block').default;####ES6
import ClusterToggleView from 'onesie-toggle-environment-block';<ClusterToggleView>
//First Child is the Thumbnail View
<div>
Thumbnail View
</div>
//Second Child is the Detail View
<div>
Detail View
</div>
</ClusterToggleView>var thumb = <div>Thumb View</div>;
var expanded = <div>Detail View</div>;
<ClusterToggleView
thumbElement={thumb}
detailElement={expanded}/>TO DO: Add Styling Documentation
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
Juan Carlos Garzon
Author
Oakley Hall
Project Lead, Code Review
Yuan Shen
Code Review