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

<mth-empty-state>

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

Accessible empty, no-results, or error placeholder container with optional icon, heading, description, and action slots.

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

Multi-Framework Playground & Snippets

<script type="module" src="@methane-ui/ui/empty-state"></script>
<mth-empty-state variant="default" tone="neutral">Example</mth-empty-state>

Properties & Attributes

PropertyAttributeTypeDefaultDescription
headingheadingstring""Primary empty state heading text.
descriptiondescriptionstring""Secondary explanatory text.
variantvariant'default' | 'compact' | 'card'"default"Visual container layout variant (default, compact, card).
tonetone'neutral' | 'info' | 'warning' | 'danger'"neutral"Semantic icon badge tone (neutral, info, warning, danger).
alignalign'center' | 'start'"center"Horizontal alignment (center or start).
roleModerole-mode'region' | 'status' | 'none'"region"Semantic container role (region, status, or none).

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