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

<mth-progress-bar>

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

Accessible determinate and indeterminate progress bar driven by adopted CSSStyleSheet --_progress custom property.

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-bar> (@methane-ui/ui)
Ready · interact with <mth-progress-bar>, or toggle Theme, Direction (LTR/RTL), or props above.

Multi-Framework Playground & Snippets

<script type="module" src="@methane-ui/ui/progress-bar"></script>
<mth-progress-bar value="0" max="100"></mth-progress-bar>

Properties & Attributes

PropertyAttributeTypeDefaultDescription
valuevaluenumber0Current numeric progress value clamped between 0 and max.
maxmaxnumber100Maximum progress value (defaults to 100).
indeterminateindeterminatebooleanfalseSwitches to indeterminate mode and omits aria-valuenow.
labellabelstring""Accessible label for the progressbar; defaults to localized "Progress" when empty.

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).Conformance suite
i18nRoutes 1 UI/ARIA strings through @methane-ui/core i18n catalog.Locale context test