Skip to content

Commit 26eca52

Browse files
committed
New README.md
1 parent d82f872 commit 26eca52

File tree

1 file changed

+24
-16
lines changed

1 file changed

+24
-16
lines changed

README.md

+24-16
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,33 @@
11
# <status-indicator/>
22

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.
44

55
![Screenshot](https://i.imgur.com/v1vJ3Ue.gif)
66

77
## Install
88

99
```bash
10-
npm i status-indicator
10+
npm i vue-status-indicator
1111
```
1212

1313
## Usage
1414

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`.
2416

2517
```javascript
26-
import 'status-indicator/styles.css'
18+
import 'vue-status-indicator'
2719
```
2820

29-
HTML/React:
21+
HTML/Vue:
3022

3123
```html
32-
<status-indicator active pulse></status-indicator>
24+
<status-indicator type="active" pulse></status-indicator>
3325
```
3426

3527
### API
3628

3729
```html
38-
<status-indicator active|positive|intermediary|negative|pulse></status-indicator>
30+
<status-indicator type="active|positive|intermediary|negative" pulse="true|false"></status-indicator>
3931
```
4032

4133
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
6759
}
6860
```
6961

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+
7078
### Supported Browsers
7179

7280
Latest versions of Chrome/Firefox/Safari/IE/Opera.
7381

7482
### LICENSE
7583

76-
MIT
84+
MIT

0 commit comments

Comments
 (0)