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

<mth-resizable-panel>

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

Resizable panel region coordinated inside <mth-resizable-group> with optional collapsible minimum threshold.

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-resizable-panel> (@methane-ui/ui)
Target Resizable Panel (45%)
Detail Panel (55%)
Ready · interact with <mth-resizable-panel>, or toggle Theme, Direction (LTR/RTL), or props above.

Multi-Framework Playground & Snippets

<script type="module" src="@methane-ui/ui/resizable-panel"></script>
<mth-resizable-panel default-size="50" size="50">Example</mth-resizable-panel>

Properties & Attributes

PropertyAttributeTypeDefaultDescription
defaultSizedefault-sizenumber50Initial percentage allocation when uninitialized.
sizesizenumber50Current panel percentage size.
minSizemin-sizenumber10Minimum panel size percentage.
maxSizemax-sizenumber100Maximum panel size percentage.
collapsiblecollapsiblebooleanfalseWhether the panel can collapse to 0%.
collapsedcollapsedbooleanfalseWhether the panel is currently collapsed.

Events

EventDetail TypeDescription
mth-collapse{ collapsed: boolean }Fired when collapsed state toggles.

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