You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://codesandbox.io/s/4zywwyjxw7)
6
8
7
9
## Props
8
10
@@ -13,7 +15,7 @@
13
15
14
16
## Installation
15
17
16
-
Install the package from npm by running
18
+
Install the package from npm by running:
17
19
18
20
```
19
21
$ npm i vue-loading-button
@@ -29,36 +31,43 @@ $ yarn add vue-loading-button
29
31
30
32
Import, register and place the component in your Vue app.
31
33
32
-
```
34
+
```html
33
35
<template>
34
-
[...]
35
-
<VueLoadingButton />
36
-
[...]
36
+
<VueLoadingButton />
37
37
</template>
38
+
```
38
39
39
-
<script>
40
+
```js
40
41
importVueLoadingButtonfrom'vue-loading-button'
41
42
42
-
[...]
43
+
exportdefault {
43
44
components: {
44
45
VueLoadingButton,
45
-
[...]
46
-
</script>
46
+
}
47
+
}
47
48
```
48
49
49
-
## Dev
50
-
51
-
Running example script requires @vue/cli and @vue/cli-service-global to be installed.
52
-
Install globally by running `npm i --g @vue/cli @vue/cli-service-global` or `yarn add global vue/cli @vue/cli-service-global`
53
-
54
50
## Accessibility
55
51
56
52
Apply attributes, such as aria-label, directly on the element to apply them to the button.
57
53
58
-
```
54
+
```html
59
55
<template>
60
-
[...]
61
-
<VueLoadingButton aria-label='Send message' />
62
-
[...]
56
+
<VueLoadingButtonaria-label='Send message' />
63
57
</template>
64
58
```
59
+
60
+
## Dev
61
+
62
+
Running example script requires @vue/cli and @vue/cli-service-global to be installed.
63
+
Install globally by running `npm i --g @vue/cli @vue/cli-service-global` or `yarn add global vue/cli @vue/cli-service-global`.
64
+
65
+
## Contributing
66
+
67
+
This project is open to and encourages contributions! Feel free to discuss any bug fixes/features in the [issues](https://github.com/shwilliam/vue-loading-button/issues). If you wish to work on this project:
68
+
69
+
1.[Fork the project](https://github.com/shwilliam/vue-loading-button/archive/master.zip)
70
+
2. Create your feature branch (`git checkout -b new-feature-branch`)
71
+
3. Commit your changes (`git commit -am 'add new feature'`)
72
+
4. Push to the branch (`git push origin new-feature-branch`)
73
+
5.[Submit a pull request!](https://github.com/shwilliam/vue-loading-button/pull/new/master)
0 commit comments