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

<mth-skeleton>

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

Decorative loading placeholder (aria-hidden="true") supporting text lines, circular, and rectangular variants via CSS custom properties.

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

Multi-Framework Playground & Snippets

<script type="module" src="@methane-ui/ui/skeleton"></script>
<mth-skeleton variant="text" lines="1"></mth-skeleton>

Properties & Attributes

PropertyAttributeTypeDefaultDescription
variantvariant'text' | 'circular' | 'rectangular'"text"Placeholder geometry (text | circular | rectangular).
lineslinesnumber1Number of placeholder lines rendered when variant="text".
animatedanimatedbooleantrueEnables shimmer/pulse animation (disabled automatically under prefers-reduced-motion: reduce).

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(animated).Conformance suite