1.0.3 • Published 4 years ago

react-togglelabels v1.0.3

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

Toggle Labels Build Status License

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:

  1. defaultOption : The default selected Option/label in Toggle
  2. otherOption : The second option/label in Toggle
  3. onChange : On shifting the toggle button

Example view

npm.io

Updates Coming Soon: Color and Style Selection via props