diff --git a/README.md b/README.md index 78e465d..4f7b591 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ Use: | 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'}` | +| color | [String, Object] | `#75C791` | If `String` - color of the button when checked
If `Object` - colors for the button when checked/unchecked or disabled
Example: `{checked: '#00FF00', unchecked: '#FF0000, disabled: '#CCCCCC'}` | | cssColors | Boolean | false | If `true` - deactivates the setting of colors through inline styles in favor of using CSS styling | | 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'}` | | switchColor | [String, Object] | `#BFCBD9` | If `String` - color or background property of the switch when checked
If `Object` - colors or background property for the switch when checked/uncheked
Example: `{checked: '#25EF02', unchecked: 'linear-gradient(red, yellow)'}` | diff --git a/demo/src/App.vue b/demo/src/App.vue index 11739fb..730bd40 100644 --- a/demo/src/App.vue +++ b/demo/src/App.vue @@ -30,11 +30,17 @@ + + - +