Skip to content

Commit a6f9802

Browse files
frankperez87euvl
authored andcommitted
Update README.md available properties syntax. (#106)
Update properties to match the syntax of how you'd use it within your application.
1 parent 976afd0 commit a6f9802

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ Vue.component('ToggleButton', ToggleButton)
7171
| speed | Number | 300 | Transition time for the animation |
7272
| disabled | Boolean | false | Button does not react on mouse events |
7373
| color | [String, Object] | `#75C791` | If `String` - color of the button when checked <br>If `Object` - colors for the button when checked/unchecked or disabled<br>Example: `{checked: '#00FF00', unchecked: '#FF0000', disabled: '#CCCCCC'}` |
74-
| cssColors | Boolean | false | If `true` - deactivates the setting of colors through inline styles in favor of using CSS styling |
74+
| css-colors | Boolean | false | If `true` - deactivates the setting of colors through inline styles in favor of using CSS styling |
7575
| 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'}` |
76-
| 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)'}` |
76+
| switch-color | [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)'}` |
7777
| width | Number | 50 | Width of the button |
7878
| height | Number | 22 | Height of the button |
7979
| name | String | undefined | Name to attach to the generated input field |
80-
| fontSize | Number | undefined | Font size |
80+
| font-size | Number | undefined | Font size |
8181

8282
### Events
8383

0 commit comments

Comments
 (0)