1.0.6 • Published 8 years ago
onesie-toggle-environment-block v1.0.6
Onesie Toggle Block View
React Reuseable Component that allows toggling between a given thumbnail view and a detail view.
Installation
npm i --save onesie-toggle-environment-block
Usage
Add to Project
####ES5
var ClusterToggleView = require('onesie-toggle-environment-block').default;
####ES6
import ClusterToggleView from 'onesie-toggle-environment-block';
Passing Views as Children
<ClusterToggleView>
//First Child is the Thumbnail View
<div>
Thumbnail View
</div>
//Second Child is the Detail View
<div>
Detail View
</div>
</ClusterToggleView>
Passing Views as Props
var thumb = <div>Thumb View</div>;
var expanded = <div>Detail View</div>;
<ClusterToggleView
thumbElement={thumb}
detailElement={expanded}/>
Component Styling
TO DO: Add Styling Documentation
Contributing
- 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
Credits
Juan Carlos Garzon Author
Oakley Hall Project Lead, Code Review
Yuan Shen Code Review
1.0.6
8 years ago
1.0.5
8 years ago
1.0.4
8 years ago
1.0.3
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago
0.1.0
8 years ago
0.0.13
8 years ago
0.0.12
8 years ago
0.0.11
8 years ago
0.0.10
8 years ago
0.0.9
8 years ago
0.0.8
8 years ago
0.0.7
8 years ago
0.0.6
8 years ago
0.0.5
8 years ago
0.0.3
8 years ago
0.0.2
8 years ago
0.0.1
8 years ago