# @dev.mohe/mwc-circular-progress

> Material Design circular progress web component

Latest version **0.19.3** (published 2020-10-13) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @dev.mohe/mwc-circular-progress
pnpm add @dev.mohe/mwc-circular-progress
yarn add @dev.mohe/mwc-circular-progress
bun add @dev.mohe/mwc-circular-progress
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: esm support; no vulnerabilities; high maintenance score; popular repo.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.19.3 |
| Published | 2020-10-13 |
| First published | 2020-10-13 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 6 |
| Unpacked size | 50.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11467 |
| Maintainers | dev.mohe |
| Keywords | material design, web components, circular progress |

## Links

- npm: https://www.npmjs.com/package/@dev.mohe/mwc-circular-progress
- Repository: https://github.com/material-components/material-components-web-components
- Homepage: https://github.com/material-components/material-components-web-components#readme
- Issues: https://github.com/material-components/material-components-web-components/issues
- npm.io page: https://npm.io/package/@dev.mohe/mwc-circular-progress

## Dependencies (6)

- [tslib](https://npm.io/package/tslib.md) ^1.10.0
- [lit-html](https://npm.io/package/lit-html.md) ^1.1.2
- [lit-element](https://npm.io/package/lit-element.md) ^2.3.0
- [@material/theme](https://npm.io/package/@material/theme.md) =8.0.0-canary.8a39352c8.0
- [@dev.mohe/mwc-base](https://npm.io/package/@dev.mohe/mwc-base.md) ^0.19.3
- [@material/circular-progress](https://npm.io/package/@material/circular-progress.md) =8.0.0-canary.8a39352c8.0

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 0.19.3 (latest) — 2020-10-13

## README

# `<mwc-circular-progress>` [![Published on npm](https://img.shields.io/npm/v/@dev.mohe/mwc-circular-progress.svg)](https://www.npmjs.com/package/@dev.mohe/mwc-circular-progress)
> 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.

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/5f6894b191aacdb7da61e0e9f91bae96169fb190/packages/circular-progress/images/showcase.gif" height="48px">

[Material Design Guidelines: Progress Indicators](https://material.io/components/progress-indicators/#circular-progress-indicators)

[Demo](https://material-components.github.io/material-components-web-components/demos/circular-progress/)

## Example usage

### Determinate

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/5f6894b191aacdb7da61e0e9f91bae96169fb190/packages/circular-progress/images/determinate.png" height="48px">

```html
<script type="module">
  import '@dev.mohe/mwc-circular-progress';
</script>
<mwc-circular-progress progress="0.7"></mwc-circular-progress>
```

### Indeterminate

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/5f6894b191aacdb7da61e0e9f91bae96169fb190/packages/circular-progress/images/indeterminate.gif" height="48px">

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

### Styled

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/5f6894b191aacdb7da61e0e9f91bae96169fb190/packages/circular-progress/images/styled.gif" height="48px">

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

## API

### Slots

None

### Properties/Attributes

| Name            | Type      | Default | Description
| --------------- | --------- | ------- | -----------
| `indeterminate` | `boolean` | `false` | Sets the circular-progress into its indeterminate state.
| `progress`      | `number`  | `0`     | Sets the progress bar's value. Value should be between [0, 1].
| `density`       | `number`  | `0`     | Sets 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.
| `closed`        | `boolean` | `false` | Sets the progress indicator to the closed state. Sets content opacity to 0. Typically should be set to true when loading has finished.

### Methods

Name              | Description
----------------- | ------------------------------------------
`open() => void`  | Sets `CircularProgress.closed` to `false`;
`close() => void` | Sets `CircularProgress.closed` to `true`;

### Events

None

### CSS Custom Properties

Name                                  | Default      | Description
------------------------------------- | ------------ | -----------
`--mdc-circular-progress-track-color` | transparent  | Sets the track color of the determinate progress bar.

#### Global Custom Properties

This component exposes the following global [theming](https://github.com/material-components/material-components-web-components/blob/master/docs/theming.md)
custom properties.

| Name                                 | Description
| ------------------------------------ | -----------
| `--mdc-theme-primary`                | Sets the color of primary progress bar.

---
_Source: https://npm.io/package/@dev.mohe/mwc-circular-progress · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
