{"action":"created","issue":{"url":"https://api.github.com/repos/mxenabled/mx-react-components/issues/50","labels_url":"https://api.github.com/repos/mxenabled/mx-react-components/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/mxenabled/mx-react-components/issues/50/comments","events_url":"https://api.github.com/repos/mxenabled/mx-react-components/issues/50/events","html_url":"https://github.com/mxenabled/mx-react-components/pull/50","id":110698467,"number":50,"title":"Add ToggleSwitch","user":{"login":"jmophoto","id":488916,"avatar_url":"https://avatars.githubusercontent.com/u/488916?v=3","gravatar_id":"","url":"https://api.github.com/users/jmophoto","html_url":"https://github.com/jmophoto","followers_url":"https://api.github.com/users/jmophoto/followers","following_url":"https://api.github.com/users/jmophoto/following{/other_user}","gists_url":"https://api.github.com/users/jmophoto/gists{/gist_id}","starred_url":"https://api.github.com/users/jmophoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmophoto/subscriptions","organizations_url":"https://api.github.com/users/jmophoto/orgs","repos_url":"https://api.github.com/users/jmophoto/repos","events_url":"https://api.github.com/users/jmophoto/events{/privacy}","received_events_url":"https://api.github.com/users/jmophoto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-09T16:59:00Z","updated_at":"2015-10-09T23:09:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mxenabled/mx-react-components/pulls/50","html_url":"https://github.com/mxenabled/mx-react-components/pull/50","diff_url":"https://github.com/mxenabled/mx-react-components/pull/50.diff","patch_url":"https://github.com/mxenabled/mx-react-components/pull/50.patch"},"body":"Add ToggleSwitch component.\r\n\r\nAvailable props:\r\n- activeByDefault (bool, true): Initial state of the switch.\r\n- activeColor (string, '#359BCF'): Color of the active portion of the switch and the active label, if shown.\r\n- children (node): If children nodes are provided, they will be shown in the active side of the toggle switch. For example, including an icon.\r\n- height (number 20): Height, in pixels, of the component.\r\n- inactiveColor (string, '#F5F5F5'): Color of the inactive portion of the switch and the inactive label.\r\n- leftLabel (string, 'On'): Text to be displayed on the left side of the switch. Dependent on showLabels.\r\n- onToggle (function): Method to be called on toggle. This will return the active state boolean.\r\n- rightLabel (string, 'Off'): Text to be displayed on the right side of the switch. Dependent on showLabels.\r\n- showLabels (boolean, true): Show left and right label text.\r\n- style (array or object): Custom styling to be applied to the component\r\n- width (number, 80): Width of the toggle switch, in pixels, Does not include label text.\r\n\r\n![screen shot 2015-10-09 at 4 46 31 pm](https://cloud.githubusercontent.com/assets/488916/10407225/52c83f82-6ea5-11e5-868a-a46808a139cd.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mxenabled/mx-react-components/issues/comments/147008181","html_url":"https://github.com/mxenabled/mx-react-components/pull/50#issuecomment-147008181","issue_url":"https://api.github.com/repos/mxenabled/mx-react-components/issues/50","id":147008181,"user":{"login":"jmophoto","id":488916,"avatar_url":"https://avatars.githubusercontent.com/u/488916?v=3","gravatar_id":"","url":"https://api.github.com/users/jmophoto","html_url":"https://github.com/jmophoto","followers_url":"https://api.github.com/users/jmophoto/followers","following_url":"https://api.github.com/users/jmophoto/following{/other_user}","gists_url":"https://api.github.com/users/jmophoto/gists{/gist_id}","starred_url":"https://api.github.com/users/jmophoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmophoto/subscriptions","organizations_url":"https://api.github.com/users/jmophoto/orgs","repos_url":"https://api.github.com/users/jmophoto/repos","events_url":"https://api.github.com/users/jmophoto/events{/privacy}","received_events_url":"https://api.github.com/users/jmophoto/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T23:09:16Z","updated_at":"2015-10-09T23:09:16Z","body":"With that use case in mind, I agree. Will make that change. "}}