You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-3Lines changed: 24 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
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.
4
4
5
5
<palign="center">
6
-
<imgsrc="https://i.imgur.com/8ytDSmL.png">
6
+
<imgsrc="https://i.imgur.com/Iram1NB.png">
7
7
</p>
8
8
9
9
## Installation
@@ -34,6 +34,27 @@ new Vue({
34
34
35
35
```html
36
36
<onoff-togglev-model="checked" />
37
+
38
+
<onoff-togglev-model="checked"theme="ios" />
39
+
40
+
<onoff-togglev-model="checked"theme="material" />
41
+
42
+
<onoff-toggle
43
+
v-model="checked"
44
+
onColor="#008F13"
45
+
/>
46
+
47
+
<onoff-toggle
48
+
v-model="checked"
49
+
theme="ios"
50
+
onColor="#008F13"
51
+
/>
52
+
53
+
<onoff-toggle
54
+
v-model="checked"
55
+
theme="material"
56
+
thumbColor="#008F13"
57
+
/>
37
58
```
38
59
39
60
@@ -48,7 +69,7 @@ new Vue({
48
69
<tbody>
49
70
<tr>
50
71
<td>theme</td>
51
-
<td>Theme to use. "default"and "ios" are available.</td>
72
+
<td>Theme to use. "default", "ios" and "material" are available.</td>
52
73
</tr>
53
74
<tr>
54
75
<td>name</td>
@@ -68,7 +89,7 @@ new Vue({
68
89
</tr>
69
90
<tr>
70
91
<td>thumbColor</td>
71
-
<td>Background color of the thumb</td>
92
+
<td>Background color of the thumb. For "material" theme, if you don't specify onColor, it will be thumbColor with opacity 0.5 by default</td>
0 commit comments