Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 473 Bytes

README.md

File metadata and controls

14 lines (12 loc) · 473 Bytes

toggle-widget

Toggle widget, to use with browserify. Usage here, live demo here.

toggle = require("toggle-widget")(container, options)

  • container :: dom.Element
    • disabled :: boolean
    • BrowserEvent "toggle"
      • toggled :: boolean
  • options :: object
    • colors :: [string]
  • toggle(dispatch)
    • dispatch :: boolean