Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
| e4b5a9ebc2 |
2 changed files with 2 additions and 5 deletions
|
|
@ -7,7 +7,7 @@ Colored circles that can pulse. That's it. That's the component.
|
|||
Copy the following to your HTML page:
|
||||
|
||||
```html
|
||||
<script type="module" src="https://esm.sh/@ayo-run/status-indicator"></script>
|
||||
<script type="module" src="https://esm.sh/@ayo-run/status-indicator@2.1.2/es2022/status-indicator.mjs"></script>
|
||||
|
||||
<status-indicator pulse status="positive">
|
||||
All systems operational
|
||||
|
|
@ -16,9 +16,6 @@ Copy the following to your HTML page:
|
|||
|
||||
See example on CodePen: https://codepen.io/ayo-run/pen/RNorXrK
|
||||
|
||||
> [!NOTE]
|
||||
> In this example, `esm.sh` bundles the base class together with the component. For most use cases, that is good enough but, still, "it depends". Copying the code will work just fine, but it woudn't hurt to read around about the trade-offs how bundling affects your application.
|
||||
|
||||
## Installation via NPM
|
||||
|
||||
If you want to install the library as a node module, you can install the [published package](https://npmx.dev/@ayo-run/status-indicator) and the [base class](https://webcomponent.io) via NPM:
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@
|
|||
Copy the following to your HTML page:
|
||||
</p>
|
||||
<code><pre>
|
||||
<script type="module" src="https://esm.sh/@ayo-run/status-indicator"></script>
|
||||
<script type="module" src="https://esm.sh/@ayo-run/status-indicator@2.1.2/es2022/status-indicator.mjs"></script>
|
||||
|
||||
<status-indicator pulse status="positive">
|
||||
All systems operational
|
||||
|
|
|
|||
Loading…
Reference in a new issue