diff --git a/README.md b/README.md index 5f46d82..daa9375 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ A simple, lightweight on/off toggle component made with Vue.js. Provides multiple themes with default configurations. You can also customize size, color and borders.

- +

## Installation @@ -34,6 +34,27 @@ new Vue({ ```html + + + + + + + + + + ``` @@ -48,7 +69,7 @@ new Vue({ theme - Theme to use. "default" and "ios" are available. + Theme to use. "default", "ios" and "material" are available. name @@ -68,7 +89,7 @@ new Vue({ thumbColor - Background color of the thumb + Background color of the thumb. For "material" theme, if you don't specify onColor, it will be thumbColor with opacity 0.5 by default borderColor diff --git a/package.json b/package.json index 522cf02..62f72d4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-onoff-toggle", - "version": "1.0.2", + "version": "1.0.3", "description": "A smart, lightweight and easy-to-use on/off toggle component for Vue.js with multiple themes.", "main": "src/onoff-toggle.vue", "keywords": [ diff --git a/src/onoff-toggle.vue b/src/onoff-toggle.vue index 8a4d6a4..719a48a 100644 --- a/src/onoff-toggle.vue +++ b/src/onoff-toggle.vue @@ -18,8 +18,11 @@