jcb-spinner
v1.0.1
Published
simple waiting spinner
Downloads
2
Readme
Install
npm install jcb-spinner
Usage example
index.html
<!DOCTYPE html>
<body>
<jcb-spinner id="spinner"></jcb-spinner>
</body>
<script type="module">
import 'jcb-spinner'
import "@fontsource/roboto/300.css"
const spinner = document.getElementById('spinner')
spinner.value = true
setTimeout(() => {
spinner.value = false
}, 1000)
</script>
<style>
:root {
font-family: "Roboto";
font-weight: 300;
}
</style>
API references
jcb-spinner
Attributes
| Name | Type | Default | Description |
| ---------------- |:-------------:|:--------:| -------------------------------------------------|
| value
| Boolean | false | whether spinner is on or off |