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

<mth-spinner>

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

Accessible indeterminate loading spinner with localized role="status" label and prefers-reduced-motion support.

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

Multi-Framework Playground & Snippets

<script type="module" src="@methane-ui/ui/spinner"></script>
<mth-spinner size="xs"></mth-spinner>

Properties & Attributes

PropertyAttributeTypeDefaultDescription
sizesize'xs' | 'sm' | 'md' | 'lg'"md"Spinner diameter preset (xs | sm | md | lg).
labellabelstring""Accessible loading announcement; defaults to localized "Loading" 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
i18nRoutes 1 UI/ARIA strings through @methane-ui/core i18n catalog.Locale context test