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

<mth-tab-panel>

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

Content region controlled by an <mth-tab> inside <mth-tabs>.

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-tab-panel> (@methane-ui/ui)
OverviewTokensTarget <mth-tab-panel> rendered inside <mth-tabs> with automatic ARIA tabpanel linkage.Precision Atmospheric OKLCH tokens.
Ready · interact with <mth-tab-panel>, or toggle Theme, Direction (LTR/RTL), or props above.

Multi-Framework Playground & Snippets

<script type="module" src="@methane-ui/ui/tab-panel"></script>
<mth-tab-panel>Example</mth-tab-panel>

Properties & Attributes

PropertyAttributeTypeDefaultDescription
valuevaluestring""Identifier matching the associated <mth-tab> value.
activeactivebooleanfalseShows the panel when true; hides it from layout and assistive technology otherwise.

Accessibility Checklist

CategoryRequirementVerified By
ariaAll aria-* IDREFs resolve within the same DOM root (ADR-003).scanSameRootAria
focusFocus ownership matches focusModel="none" with host role="tabpanel".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(active).Conformance suite