Skip to content

Commit fb166c7

Browse files
committed
Cleanup
1 parent 8af3c2a commit fb166c7

File tree

1 file changed

+37
-18
lines changed

1 file changed

+37
-18
lines changed

README.md

Lines changed: 37 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,60 @@
1-
# Vue Toggle component
2-
31
This is a project that makes it easier to use a (checkbox) toggle component that's modern.
42

5-
![DEMO](https://user-images.githubusercontent.com/25898715/113936516-26964d00-97f8-11eb-850d-7cc74690ccf6.gif)
6-
73
![npm bundle size](https://img.shields.io/bundlephobia/min/vue-toggle-component)
84
![npm](https://img.shields.io/npm/dt/vue-toggle-component)
95
![GitHub issues](https://img.shields.io/github/issues/niels-bosman/vue-toggle-component)
106
![npm](https://img.shields.io/npm/v/vue-toggle-component)
117
![GitHub Repo stars](https://img.shields.io/github/stars/niels-bosman/vue-toggle-component?style=social)
128

13-
## Installation
9+
![DEMO](https://user-images.githubusercontent.com/25898715/113936516-26964d00-97f8-11eb-850d-7cc74690ccf6.gif)
10+
## Getting Started
1411

15-
#### npm
16-
```bash
17-
npm install --save vue-toggle-component
18-
```
12+
### Installation
13+
14+
#### Installing the package
15+
```sh
16+
# install with yarn
17+
yarn add vue-toggle-component
1918

20-
## Import
19+
# install with npm
20+
npm install vue-toggle-component --save
21+
```
2122

23+
#### Importing the package in your Vue application
2224
```javascript
2325
import VueToggle from "@vue-toggle-component";
2426
```
27+
### Vue version support
2528

26-
## Example
27-
```
28-
<vue-toggle title="Toggle me" id="1" />
29+
The main v2 version supports Vue 3.x only, for previous versions of Vue, check the following the table.
30+
31+
| vue Version | vue-toggle-component version |
32+
| ----------- | ---------------------------- |
33+
| `2.x` | `1.x` |
34+
| `3.x` | `2.x` |
35+
36+
### Usage
37+
#### Example
38+
```html
39+
<template>
40+
<VueToggle title="Toggle me" id="1"/>
41+
</template>
2942
```
3043

31-
### Author
44+
### Authors
45+
46+
#### Niels Bosman
47+
48+
www.github.com/niels-bosman
49+
50+
https://nielsbosman.dev
3251

33-
Niels Bosman
52+
#### Mike van Egmond
3453

35-
Github: www.github.com/niels-bosman
54+
www.github.com/mve
3655

37-
Website: https://nielsbosman.dev
56+
https://egmond.dev
3857

3958
### License
4059

41-
ISC
60+
MIT

0 commit comments

Comments
 (0)