← All Components
<mth-resizable-panel>
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
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>import '@methane-ui/ui/resizable-panel';
import '@methane-ui/react';
export function Example() {
return <mth-resizable-panel default-size="50" size="50">Example</mth-resizable-panel>;
}<script setup lang="ts">
import '@methane-ui/ui/resizable-panel';
</script>
<template>
<mth-resizable-panel default-size="50" size="50">Example</mth-resizable-panel>
</template>import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import '@methane-ui/ui/resizable-panel';
import { MthResizablePanelDirective } from '@methane-ui/angular';
@Component({
standalone: true,
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [MthResizablePanelDirective],
template: `<mth-resizable-panel default-size="50" size="50">Example</mth-resizable-panel>`,
})
export class ExampleComponent {}<script lang="ts">
import '@methane-ui/ui/resizable-panel';
import MthResizablePanel from '@methane-ui/svelte/MthResizablePanel.svelte';
</script>
<MthResizablePanel default-size="50" size="50">Example</MthResizablePanel>Properties & Attributes
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
defaultSize | default-size | number | 50 | Initial percentage allocation when uninitialized. |
size | size | number | 50 | Current panel percentage size. |
minSize | min-size | number | 10 | Minimum panel size percentage. |
maxSize | max-size | number | 100 | Maximum panel size percentage. |
collapsible | collapsible | boolean | false | Whether the panel can collapse to 0%. |
collapsed | collapsed | boolean | false | Whether the panel is currently collapsed. |
Events
| Event | Detail Type | Description |
|---|---|---|
mth-collapse | { collapsed: boolean } | Fired when collapsed state toggles. |
Accessibility Checklist
| Category | Requirement | Verified By |
|---|---|---|
| aria | All aria-* IDREFs resolve within the same DOM root (ADR-003). | scanSameRootAria |
| focus | Focus ownership matches focusModel="none". | lint-plugin & spec-compiler |
| contrast | Renders legible borders, focus outlines, and selection indicators under forced-colors: active. | Playwright forced-colors matrix |
| states | Exposes ElementInternals CustomStateSet flags: :state(collapsed). | Conformance suite |