Skip to content

Commit 4e779a3

Browse files
committed
updated readme and demo
1 parent bc7a9df commit 4e779a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Use:
4848
| color | [String, Object] | `#75C791` | If `String` - color of the button when checked <br>If `Object` - colors for the button when checked/uncheked <br>Example: `{checked: '#00FF00', unchecked: '#FF0000'}` |
4949
| cssColors | Boolean | false | If `true` - deactivates the setting of colors through inline styles in favor of using CSS styling |
5050
| labels | [Boolean, Object] | false | If `Boolean` - shows/hides default labels ("on" and "off") <br>If `Object` - sets custom labels for both states. <br>Example: `{checked: 'Foo', unchecked: 'Bar'}` |
51-
| buttonBackground | [String, Object] | `#BFCBD9` | If `String` - color or background property of the switch when checked <br>If `Object` - colors or background property for the switch when checked/uncheked <br>Example: `{checked: '#25EF02', unchecked: 'linear-gradient(red, yellow)'}` |
51+
| switchColor | [String, Object] | `#BFCBD9` | If `String` - color or background property of the switch when checked <br>If `Object` - colors or background property for the switch when checked/uncheked <br>Example: `{checked: '#25EF02', unchecked: 'linear-gradient(red, yellow)'}` |
5252
| width | Number | 50 | Width of the button, default is 50 |
5353
| height | Number | 22 | Height of the button, default is 22 |
5454

demo/src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
:labels="{checked: 'Button', unchecked: 'Collor'}"
4040
:color="{checked: '#7DCE94', unchecked: '#82C7EB'}"
4141
:width="80"
42-
:buttonBackground="{checked: 'linear-gradient(red, yellow)', unchecked: '#F2C00B'}"/>
42+
:switchColor="{checked: 'linear-gradient(red, yellow)', unchecked: '#F2C00B'}"/>
4343
</div>
4444
<div style="padding-top: 20px;">
4545
<toggle-button

0 commit comments

Comments
 (0)