Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@material/mwc-circular-progress

Package Overview
Dependencies
Maintainers
21
Versions
492
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@material/mwc-circular-progress

Material Design circular progress web component

  • 0.23.0-canary.76c68381.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
21
Created
Source

<mwc-circular-progress> Published on npm

IMPORTANT: The Material Web Components are a work in progress and subject to major changes until 1.0 release.

Progress indicators express an unspecified wait time or display the length of a process.

Material Design Guidelines: Progress Indicators

Demo

Example usage

Determinate

<script type="module">
  import '@material/mwc-circular-progress';
</script>
<mwc-circular-progress progress="0.7"></mwc-circular-progress>

Indeterminate

<mwc-circular-progress indeterminate></mwc-circular-progress>

Styled

<style>
  mwc-circular-progress {
    --mdc-theme-primary: red;
  }
</style>
<mwc-circular-progress indeterminate></mwc-circular-progress>

API

Slots

None

Properties/Attributes

NameTypeDefaultDescription
indeterminatebooleanfalseSets the circular-progress into its indeterminate state.
progressnumber0Sets the progress bar's value. Value should be between [0, 1].
densitynumber0Sets the progress indicator's sizing based on density scale. Minimum value is -8. Each unit change in density scale corresponds to 4px change in side dimensions. The stroke width adjusts automatically.
closedbooleanfalseSets the progress indicator to the closed state. Sets content opacity to 0. Typically should be set to true when loading has finished.

Methods

NameDescription
open() => voidSets CircularProgress.closed to false;
close() => voidSets CircularProgress.closed to true;

Events

None

CSS Custom Properties

NameDefaultDescription
--mdc-circular-progress-track-colortransparentSets the track color of the determinate progress bar.
Global Custom Properties

This component exposes the following global theming custom properties.

NameDescription
--mdc-theme-primarySets the color of primary progress bar.

Keywords

FAQs

Package last updated on 08 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc