Near Perfect Mood

    zooid-switch

    2.0.2 • Public • Published

    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

    Prop Type Default Description
    alignLabel string left Sets align property for the switch label. Options: left, right
    className string Additional css classes for your switch
    disabled bool false Makes the switch un-switchable
    label string Label for the switch
    onChange func Custom callback function to be fired each time the switch is fired
    on bool false The current state of the switch

    Example

    <Switch label="Switch Me On" />

    Install

    npm i zooid-switch

    DownloadsWeekly Downloads

    1

    Version

    2.0.2

    License

    MIT

    Last publish

    Collaborators

    • sqrtofsaturn
    • royvandewater
    • peterdemartini
    • chrismatthieu
    • iamruinous
    • octoblu-user