2.0.2 • Published 8 years ago

zooid-switch v2.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

zooid-switch

A React component to render Zooid like switches/toggles.

Build Status npm version Code Climate Slack Status

Install

npm install --save zooid-switch

Props

PropTypeDefaultDescription
alignLabelstringleftSets align property for the switch label. Options: left, right
classNamestringAdditional css classes for your switch
disabledboolfalseMakes the switch un-switchable
labelstringLabel for the switch
onChangefuncCustom callback function to be fired each time the switch is fired
onboolfalseThe current state of the switch

Example

<Switch label="Switch Me On" />