wc

A simple spinning loading web component based on the one from macOS

50
1
50
TypeScript
public

spinning-progress-indicator-element

A simple spinning loading web component based on macOS one.

  • 📦 Microbundle for exporting .mjs and optimize the output
  • 🔎 Uses Typescript for type checking
  • 👻 Shadow DOM to not mess with your elements and styles
  • ⚖️ less than ~900 bytes gzipped with stylese included 💅
  • 🍦 Three flavours black, grey and black
  • 💁‍Two sizes available

👀 Demo: https://codesandbox.io/s/8njv8m1v88

Installation

If you’re using Webpack or Parcel, you could use directly the package:
npm install @midudev/wc-spinning-progress

Also, you could directly use the script using a CDN like unpkg:
<script src="https://unpkg.com/@midudev/wc-spinning-progress@0.0.1/dist/spinning-progress.umd.js"></script>

Module version is provided as well:
<script type='module' src="https://unpkg.com/@midudev/wc-spinning-progress@0.0.1/dist/spinning-progress.mjs"></script>

Usage

<spinning-progress></spinning-progress>
<spinning-progress size='large'></spinning-progress>

<spinning-progress color='black'></spinning-progress>
<spinning-progress color='black' size='large'></spinning-progress>

<spinning-progress color='white'></spinning-progress>
<spinning-progress color='white' size='large'></spinning-progress>

What’s next

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D
v0.3.3[beta]