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
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,23 @@
1
-
# Vue Toggle Switch
1
+
# Vue OnOff Toggle
2
2
3
-
A simple, lightweight switch component made with Vue.js. Provides multiple themes with default configurations. You can also customize size, color and borders.
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
## Installation
6
6
```bash
7
-
npm install vue-toggle-switch --save
7
+
npm install vue-onoff-toggle --save
8
8
```
9
9
or with `yarn`,
10
10
```bash
11
-
yarn add vue-toggle-switch
11
+
yarn add vue-onoff-toggle
12
12
```
13
13
14
14
## How to use
15
15
```javascript
16
-
importToggleSwitchfrom'vue-toggle-switch'
16
+
importOnoffTogglefrom'vue-onoff-toggle'
17
17
18
18
newVue({
19
19
components: {
20
-
ToggleSwitch
20
+
OnoffToggle
21
21
},
22
22
data() {
23
23
return {
@@ -28,7 +28,7 @@ new Vue({
28
28
```
29
29
30
30
```html
31
-
<toggle-switchv-model="checked" />
31
+
<onoff-togglev-model="checked" />
32
32
```
33
33
34
34
## Props
@@ -46,19 +46,19 @@ new Vue({
46
46
</tr>
47
47
<tr>
48
48
<td>name</td>
49
-
<td>Name to attach to checkbox input. Useful when the switch is used inside a form.</td>
49
+
<td>Name to attach to checkbox input. Useful when the toggle is used inside a form.</td>
0 commit comments