Skip to content

Commit 645fa1c

Browse files
authored
Merge pull request #11 from niels-bosman/feature/readme-upgrade
Feature/readme upgrade
2 parents 8af3c2a + a5cc4e4 commit 645fa1c

File tree

2 files changed

+41
-20
lines changed

2 files changed

+41
-20
lines changed

README.md

Lines changed: 40 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,62 @@
1-
# Vue Toggle component
2-
3-
This is a project that makes it easier to use a (checkbox) toggle component that's modern.
4-
5-
![DEMO](https://user-images.githubusercontent.com/25898715/113936516-26964d00-97f8-11eb-850d-7cc74690ccf6.gif)
1+
vue-toggle-components makes an ease to use, lightweight and highly customizable toggle component for [Vue.js](https://vuejs.org/). This component is available in both light and dark mode and it supports Vue 3.
62

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
149

15-
#### npm
16-
```bash
17-
npm install --save vue-toggle-component
18-
```
10+
![Light theme](https://user-images.githubusercontent.com/25898715/116152862-c273f400-a6e6-11eb-8b4d-1017b92d14a5.gif)
11+
![Dark theme](https://user-images.githubusercontent.com/25898715/116152879-c7d13e80-a6e6-11eb-87b3-9b606184ba1e.gif)
12+
## Getting Started
1913

20-
## Import
14+
### Installation
15+
16+
#### Installing the package
17+
```sh
18+
# install with yarn
19+
yarn add vue-toggle-component
20+
21+
# install with npm
22+
npm install vue-toggle-component --save
23+
```
2124

25+
#### Importing the package in your Vue application
2226
```javascript
2327
import VueToggle from "@vue-toggle-component";
2428
```
29+
### Vue version support
2530

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

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

33-
Niels Bosman
54+
#### Mike van Egmond
3455

35-
Github: www.github.com/niels-bosman
56+
www.github.com/mve
3657

37-
Website: https://nielsbosman.dev
58+
https://egmond.dev
3859

3960
### License
4061

41-
ISC
62+
MIT

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-toggle-component",
3-
"version": "0.2.0",
3+
"version": "1.0",
44
"scripts": {
55
"serve": "vue-cli-service serve",
66
"build": "vue-cli-service build",

0 commit comments

Comments
 (0)