chore: update readme & screenshot
This commit is contained in:
parent
0c00898ac2
commit
9d607cf18d
2 changed files with 24 additions and 15 deletions
39
README.md
39
README.md
|
|
@ -2,27 +2,36 @@
|
||||||
|
|
||||||
Circles with colors. That's it. That's the component.
|
Circles with colors. That's it. That's the component.
|
||||||
|
|
||||||
|
## Quick usage via CDN
|
||||||
|
|
||||||
|
Inside your HTML `<head>`:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<head>
|
||||||
|
<script type="module" src="https://esm.sh/@ayo-run/status-indicator"></script>
|
||||||
|
</head>
|
||||||
|
```
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# using npm
|
||||||
|
npm install @ayo-run/status-indicator
|
||||||
|
|
||||||
|
# or using pnpm
|
||||||
|
pnpm add @ayo-run/status-indicator
|
||||||
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Set the `status` property of the `status-indicator` component to any of the following: positive, negative, active, intermediary.
|
Set the `status` property of the `status-indicator` component to any of the following: positive, negative, active, intermediary.
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<status-indicator status="positive">
|
<status-indicator status="positive"> All systems operational </status-indicator>
|
||||||
All systems operational
|
<status-indicator status="negative"> Something's wrong </status-indicator>
|
||||||
</status-indicator>
|
<status-indicator status="active"> It's just fine; carry on </status-indicator>
|
||||||
<status-indicator status="negative">
|
<status-indicator> Nothing matters </status-indicator>
|
||||||
Something's wrong
|
<status-indicator status="intermediary"> Slow down... </status-indicator>
|
||||||
</status-indicator>
|
|
||||||
<status-indicator status="active">
|
|
||||||
It's just fine; carry on
|
|
||||||
</status-indicator>
|
|
||||||
<status-indicator>
|
|
||||||
Nothing matters
|
|
||||||
</status-indicator>
|
|
||||||
<status-indicator status="intermediary">
|
|
||||||
Slow down...
|
|
||||||
</status-indicator>
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Result
|
### Result
|
||||||
|
|
|
||||||
BIN
screenshot.png
BIN
screenshot.png
Binary file not shown.
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 18 KiB |
Loading…
Reference in a new issue