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

<mth-upload-progress>

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

File upload progress row displaying filename, size, CSP-safe adopted stylesheet progress bar, pause/resume/cancel/retry controls, and accessible progressbar state.

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

Multi-Framework Playground & Snippets

<script type="module" src="@methane-ui/ui/upload-progress"></script>
<mth-upload-progress value="0" size="0"></mth-upload-progress>

Properties & Attributes

PropertyAttributeTypeDefaultDescription
filenamefilenamestring""Display name of the uploading file.
valuevaluenumber0Percentage complete between 0 and 100.
sizesizenumber0Optional file size in bytes.
statusstatus'queued' | 'uploading' | 'paused' | 'complete' | 'error'"queued"Transfer status (queued, uploading, paused, complete, or error).
errorMessageerror-messagestring""Error description displayed when status="error".
pausablepausablebooleantrueEnables pause/resume controls while uploading or paused.
cancellablecancellablebooleantrueEnables the cancel button while not yet complete.

Events

EventDetail TypeDescription
mth-pauseundefinedFired when pausing an active upload.
mth-resumeundefinedFired when resuming a paused upload.
mth-cancelundefinedFired when cancelling the upload.
mth-retryundefinedFired when retrying a failed upload.

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(queued), :state(uploading), :state(paused), :state(complete), :state(error).Conformance suite
i18nRoutes 10 UI/ARIA strings through @methane-ui/core i18n catalog.Locale context test