Skip to content

Commit c7cfd3a

Browse files
committed
add preview to readme
1 parent 7a3f3b2 commit c7cfd3a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
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.
44

5+
<p align="center">
6+
<img src="https://i.imgur.com/8ytDSmL.png">
7+
</p>
8+
59
## Installation
610
```bash
711
npm install vue-onoff-toggle --save
@@ -11,6 +15,7 @@ or with `yarn`,
1115
yarn add vue-onoff-toggle
1216
```
1317

18+
1419
## How to use
1520
```javascript
1621
import OnoffToggle from 'vue-onoff-toggle'
@@ -31,6 +36,7 @@ new Vue({
3136
<onoff-toggle v-model="checked" />
3237
```
3338

39+
3440
## Props
3541
<table>
3642
<thead>
@@ -83,6 +89,7 @@ new Vue({
8389
</tbody>
8490
</table>
8591

92+
8693
## Browser Compatibility
8794

8895
* Chrome: 40+

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-onoff-toggle",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "A smart, lightweight and easy-to-use on/off toggle component for Vue.js with multiple themes.",
55
"main": "src/onoff-toggle.vue",
66
"keywords": [

0 commit comments

Comments
 (0)