https://github.com/reddec/js-libs
Bundled js libs made with svelte
https://github.com/reddec/js-libs
components js svelte svelte-components
Last synced: 4 months ago
JSON representation
Bundled js libs made with svelte
- Host: GitHub
- URL: https://github.com/reddec/js-libs
- Owner: reddec
- Created: 2019-04-17T13:33:51.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-23T07:29:41.000Z (about 6 years ago)
- Last Synced: 2025-03-09T00:06:39.034Z (4 months ago)
- Topics: components, js, svelte, svelte-components
- Language: JavaScript
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JS libs
## Status badge

Shows basic status. Designed as a service badge.
Statuses:
* `pending`
* `ok`
* `fail` (or `failed`)
* `na` (not available)Example:
```js
var badge = StatusBadge({
target: document.getElementById('myElement'),
props: {
text: 'some service',
status: 'pending'
}
});// after some time...
badge.$set({status: 'ok'}); // or 'pending', 'ok', 'fail', 'na'
```