Package Exports
- react-togglelabels
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-togglelabels) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Toggle Labels

Toggle Button between two options with flexibility to assign labels to the two options for toggle, rather than the generic 'ON/OFF'
Example :
<Toggle
defaultOption="STRING"
otherOption="INT"
onChange={this.handleChange}
/>
Currently it takes in 3 props:
- defaultOption : The default selected Option/label in Toggle
- otherOption : The second option/label in Toggle
- onChange : On shifting the toggle button
Example view
Updates Coming Soon: Color and Style Selection via props