JSPM

react-togglelabels

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q18288F
  • License ISC

Toggle Button between two optins with usability and flexibility to assign labels to the two options for toggle, rather than the generic 'ON/OFF'

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 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

Updates Coming Soon: Color and Style Selection via props