From a272df5e0a36efe0f12015367f83728c0ad2b04e Mon Sep 17 00:00:00 2001 From: Artem Schander Date: Thu, 5 Oct 2017 16:15:12 +0200 Subject: [PATCH] Update README.md Add speed prop info --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b2aeef3..d93d497 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,7 @@ Use: | --- | --- | --- | --- | | value | Boolean | false | Initial state of the toggle button | | sync | Boolean | false | If set to `true`, will be watching changes in `value` property and overwrite the current state of the button whenever `value` prop. changes | +| speed | Number | 300 | Transition time for the animation | | disabled | Boolean | false | Button does not react on mouse events | | color | [String, Object] | `#75C791` | if `String` - color of the button when checked
If `Object` - colors for the button when checked/uncheked
Example: `{checked: '#00FF00', unchecked: '#FF0000'}` | | labels | [Boolean, Object] | false | If `Boolean` - shows/hides default labels ("on" and "off")
If `Object` - sets custom labels for both states.
Example: `{checked: 'Foo', unchecked: 'Bar'}` |