File tree 1 file changed +24
-16
lines changed
1 file changed +24
-16
lines changed Original file line number Diff line number Diff line change 1
1
# < ; status-indicator/> ;
2
2
3
- A web component to show status indicator as colored dots. [ Demo] ( https://tnhu.github.io/status-indicator/ ) .
3
+ A Vue.js component to show status indicator as colored dots. Demo.
4
4
5
5
![ Screenshot] ( https://i.imgur.com/v1vJ3Ue.gif )
6
6
7
7
## Install
8
8
9
9
``` bash
10
- npm i status-indicator
10
+ npm i vue- status-indicator
11
11
```
12
12
13
13
## Usage
14
14
15
- Import status-indicator.css in your CSS or JavaScript.
16
-
17
- CSS:
18
-
19
- ``` css
20
- @import ' status-indicator'
21
- ```
22
-
23
- JavaScript:
15
+ Import ` status-indicator ` .
24
16
25
17
``` javascript
26
- import 'status-indicator/styles.css '
18
+ import ' vue- status-indicator'
27
19
```
28
20
29
- HTML/React :
21
+ HTML/Vue :
30
22
31
23
``` html
32
- <status-indicator active pulse></status-indicator>
24
+ <status-indicator type = " active" pulse ></status-indicator >
33
25
```
34
26
35
27
### API
36
28
37
29
``` html
38
- <status-indicator active|positive|intermediary|negative| pulse></status-indicator>
30
+ <status-indicator type = " active|positive|intermediary|negative" pulse = " true|false " ></status-indicator >
39
31
```
40
32
41
33
You are able to customize the dot by CSS variables, default configuration is listed below.
@@ -67,10 +59,26 @@ You are able to customize the dot by CSS variables, default configuration is lis
67
59
}
68
60
```
69
61
62
+ ## Development
63
+
64
+ ``` bash
65
+ # install dependencies
66
+ npm install
67
+
68
+ # serve with hot reload at localhost:8080
69
+ npm run dev
70
+
71
+ # build for production with minification
72
+ npm run build
73
+ ```
74
+
75
+ For detailed explanation on how things work, consult the [ docs for vue-loader] ( http://vuejs.github.io/vue-loader ) .
76
+
77
+
70
78
### Supported Browsers
71
79
72
80
Latest versions of Chrome/Firefox/Safari/IE/Opera.
73
81
74
82
### LICENSE
75
83
76
- MIT
84
+ MIT
You can’t perform that action at this time.
0 commit comments