Methane@methane-ui/*
CSS LayoutsComponentsSkillsTheme BuilderGitHub
← All Components

<mth-progress-ring>

@methane-ui/ui~6.8 KB brotli (cold + Lit)~1.4 KB marginal

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

Interactive StageLive Custom Element · <mth-progress-ring> (@methane-ui/ui)
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>

Properties & Attributes

PropertyAttributeTypeDefaultDescription
valuevaluenumber0Current progress value between 0 and max.
maxmaxnumber100Maximum progress value (must be > 0).
indeterminateindeterminatebooleanfalseDisplays continuous indeterminate spinner animation.
sizesizenumber48Diameter of the ring in pixels.
strokeWidthstroke-widthnumber4SVG stroke thickness in viewBox units.
showValueshow-valuebooleanfalseDisplays percentage text inside the center of the ring.
labellabelstring""Accessible label for the progressbar.

Events

EventDetail TypeDescription
mth-complete{ value: number }Fired when determinate progress reaches max.

Accessibility Checklist

CategoryRequirementVerified By
ariaAll aria-* IDREFs resolve within the same DOM root (ADR-003).scanSameRootAria
focusFocus ownership matches focusModel="none".lint-plugin & spec-compiler
contrastRenders legible borders, focus outlines, and selection indicators under forced-colors: active.Playwright forced-colors matrix
statesExposes ElementInternals CustomStateSet flags: :state(indeterminate), :state(complete).Conformance suite
i18nRoutes 2 UI/ARIA strings through @methane-ui/core i18n catalog.Locale context test