@seed-catalog/progress-ring

1.2.2 • Public • Published

Seed Progress Ring

Documentation

Npm

npm install @seed-catalog/progress-ring

How to use

import { LitElement, html, css } from 'lit-element';
import '@seed-catalog/progress-ring';

class MyComponent extends LitElement {
  render() {
    return html`
      <seed-progress-ring></seed-progress-ring>
      
      <seed-progress-ring .percent="20" text="%"></seed-progress-ring>

      <seed-progress-ring .percent="20" custom>
        <div slot="custom">
          ...
        </div>
      </seed-progress-ring>

      <seed-progress-ring .percent="70" text="Uploading"></seed-progress-ring>

      <seed-progress-ring .percent="10" text="Uploading" only-text></seed-progress-ring>
      
      Optional attributes: ringColor / ringBackground / background / textColor

      <seed-progress-ring 
        .percent="20"
        ringColor="#f70bdd"
        ringBackground="rgba(0, 0, 0, 0.3)"
        background="grey">
      </seed-progress-ring>
    `;
  }
}

Link: https://www.npmjs.com/package/@seed-catalog/progress-ring

Package Sidebar

Install

npm i @seed-catalog/progress-ring

Weekly Downloads

1

Version

1.2.2

License

MIT

Unpacked Size

5.94 kB

Total Files

4

Last publish

Collaborators

  • vicdata