Skip to content

Commit 53fe177

Browse files
authored
Update README.md
1 parent 43acd6b commit 53fe177

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Slick and perfomant Vue 3 color picker component whose goal is to replace `<inpu
55
🚀&nbsp;&nbsp;<b><a href="https://gvguy.github.io/vue-color-input/">Live demo</a></b>&nbsp;&nbsp;🚀
66
</p>
77
<p align="center">
8-
<a href="https://codepen.io/vanechka222/pen/oNeNXrr">Codepen template</a>
8+
<a href="https://codepen.io/vanechka222/pen/oNeNXrr">Codepen</a>
99
</p>
1010

1111
<p align="center">
@@ -27,34 +27,34 @@ Not only that native color input looks different in different browsers, it also
2727
### It just works
2828
vue-color-input combines minimalist approach with comprehensive functionality. You *can* customize and extend it to your liking, set it up with additional properties, but you _don't have to_. It works as expected out of the box just as well, with only `v-model` provided.
2929

30-
## Usage
30+
## Installation
3131

32-
### Install
33-
```
32+
### npm
33+
```shell
3434
npm i vue-color-input
3535
```
36-
37-
### Import
3836
```javascript
3937
import ColorInput from 'vue-color-input'
38+
```
4039

40+
### CDN
41+
```xml
42+
<script src="https://unpkg.com/vue-color-input@latest"></script>
43+
```
4144

45+
## Usage
46+
```javascript
4247
// install it with use()
43-
4448
app.use(ColorInput)
4549

4650
// OR register component globally
47-
4851
app.component('ColorInput', ColorInput)
4952

5053
// OR locally
51-
5254
export.default {
5355
components: { ColorInput }
5456
}
5557
```
56-
57-
### Use
5858
```xml
5959
<color-input v-model="color" />
6060
```

0 commit comments

Comments
 (0)