JSPM

progress-bar-element

2.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 65
  • Score
    100M100P100Q59746F
  • License Apache-2.0

Lightweight vanilla JS horizontal loading bar

Package Exports

  • progress-bar-element

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (progress-bar-element) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Published on webcomponents.org

<progress-bar>

progress-bar is a vanilla indeterminate progress bar with no dependencies that is smaller than 2KB.

<progress-bar></progress-bar>
<progress-bar class="salmon"></progress-bar>
<progress-bar class="fast"></progress-bar>

Finish gracefully

Use the disable attribute to let the progress bar finish gracefully instead of abruptly.

API reference

Disable the progress element using the hidden attribute.

Custom property Description Default
--progress-bar-color Color of the progress bar #37A0CE
--progress-bar-duration Duration of the animation 2s
--progress-bar-delay Delay before the animation begins 0s