← All Components
<mth-progress-ring>
Circular SVG progress ring with determinate percentage progress, indeterminate spinner state, CSP-safe adopted stylesheet sizing, and progressbar ARIA semantics.
When NOT to use: Use a lightweight @methane-ui/css layout class instead of a custom element when static CSS suffices.
Live Interactive Preview
Ready · interact with <mth-progress-ring>, or toggle Theme, Direction (LTR/RTL), or props above.
Multi-Framework Playground & Snippets
<script type="module" src="@methane-ui/ui/progress-ring"></script>
<mth-progress-ring value="0" max="100">Example</mth-progress-ring>import '@methane-ui/ui/progress-ring';
import '@methane-ui/react';
export function Example() {
return <mth-progress-ring value="0" max="100">Example</mth-progress-ring>;
}<script setup lang="ts">
import '@methane-ui/ui/progress-ring';
</script>
<template>
<mth-progress-ring value="0" max="100">Example</mth-progress-ring>
</template>import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import '@methane-ui/ui/progress-ring';
import { MthProgressRingDirective } from '@methane-ui/angular';
@Component({
standalone: true,
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [MthProgressRingDirective],
template: `<mth-progress-ring value="0" max="100">Example</mth-progress-ring>`,
})
export class ExampleComponent {}<script lang="ts">
import '@methane-ui/ui/progress-ring';
import MthProgressRing from '@methane-ui/svelte/MthProgressRing.svelte';
</script>
<MthProgressRing value="0" max="100">Example</MthProgressRing>Properties & Attributes
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
value | value | number | 0 | Current progress value between 0 and max. |
max | max | number | 100 | Maximum progress value (must be > 0). |
indeterminate | indeterminate | boolean | false | Displays continuous indeterminate spinner animation. |
size | size | number | 48 | Diameter of the ring in pixels. |
strokeWidth | stroke-width | number | 4 | SVG stroke thickness in viewBox units. |
showValue | show-value | boolean | false | Displays percentage text inside the center of the ring. |
label | label | string | "" | Accessible label for the progressbar. |
Events
| Event | Detail Type | Description |
|---|---|---|
mth-complete | { value: number } | Fired when determinate progress reaches max. |
Accessibility Checklist
| Category | Requirement | Verified By |
|---|---|---|
| aria | All aria-* IDREFs resolve within the same DOM root (ADR-003). | scanSameRootAria |
| focus | Focus ownership matches focusModel="none". | lint-plugin & spec-compiler |
| contrast | Renders legible borders, focus outlines, and selection indicators under forced-colors: active. | Playwright forced-colors matrix |
| states | Exposes ElementInternals CustomStateSet flags: :state(indeterminate), :state(complete). | Conformance suite |
| i18n | Routes 2 UI/ARIA strings through @methane-ui/core i18n catalog. | Locale context test |