|
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 | | - |
| 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. |
6 | 2 |
|
7 | 3 |  |
8 | 4 |  |
9 | 5 |  |
10 | 6 |  |
11 | 7 |  |
12 | 8 |
|
13 | | -## Installation |
14 | 9 |
|
15 | | -#### npm |
16 | | -```bash |
17 | | -npm install --save vue-toggle-component |
18 | | -``` |
| 10 | + |
| 11 | + |
| 12 | +## Getting Started |
19 | 13 |
|
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 | +``` |
21 | 24 |
|
| 25 | +#### Importing the package in your Vue application |
22 | 26 | ```javascript |
23 | 27 | import VueToggle from "@vue-toggle-component"; |
24 | 28 | ``` |
| 29 | +### Vue version support |
25 | 30 |
|
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> |
29 | 44 | ``` |
30 | 45 |
|
31 | | -### Author |
| 46 | +### Authors |
| 47 | + |
| 48 | +#### Niels Bosman |
| 49 | + |
| 50 | +www.github.com/niels-bosman |
| 51 | + |
| 52 | +https://nielsbosman.dev |
32 | 53 |
|
33 | | -Niels Bosman |
| 54 | +#### Mike van Egmond |
34 | 55 |
|
35 | | -Github: www.github.com/niels-bosman |
| 56 | +www.github.com/mve |
36 | 57 |
|
37 | | -Website: https://nielsbosman.dev |
| 58 | +https://egmond.dev |
38 | 59 |
|
39 | 60 | ### License |
40 | 61 |
|
41 | | -ISC |
| 62 | +MIT |
0 commit comments