← All Components
<mth-resizable-handle>
Draggable and keyboard-accessible separator handle for <mth-resizable-group>.
When NOT to use: Use a lightweight @methane-ui/css layout class instead of a custom element when static CSS suffices.
Live Interactive Preview
Start Pane
End Pane
Ready · interact with <mth-resizable-handle>, or toggle Theme, Direction (LTR/RTL), or props above.
Multi-Framework Playground & Snippets
<script type="module" src="@methane-ui/ui/resizable-handle"></script>
<mth-resizable-handle orientation="horizontal" step="5">Example</mth-resizable-handle>import '@methane-ui/ui/resizable-handle';
import '@methane-ui/react';
export function Example() {
return <mth-resizable-handle orientation="horizontal" step="5">Example</mth-resizable-handle>;
}<script setup lang="ts">
import '@methane-ui/ui/resizable-handle';
</script>
<template>
<mth-resizable-handle orientation="horizontal" step="5">Example</mth-resizable-handle>
</template>import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import '@methane-ui/ui/resizable-handle';
import { MthResizableHandleDirective } from '@methane-ui/angular';
@Component({
standalone: true,
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [MthResizableHandleDirective],
template: `<mth-resizable-handle orientation="horizontal" step="5">Example</mth-resizable-handle>`,
})
export class ExampleComponent {}<script lang="ts">
import '@methane-ui/ui/resizable-handle';
import MthResizableHandle from '@methane-ui/svelte/MthResizableHandle.svelte';
</script>
<MthResizableHandle orientation="horizontal" step="5">Example</MthResizableHandle>Properties & Attributes
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
orientation | orientation | 'horizontal' | 'vertical' | "horizontal" | Group layout axis (horizontal or vertical). |
disabled | disabled | boolean | false | Disables drag and keyboard resizing. |
step | step | number | 5 | Arrow key increment in percentage points. |
valueNow | value-now | number | 50 | Current separator ARIA value. |
valueMin | value-min | number | 0 | Minimum separator ARIA value. |
valueMax | value-max | number | 100 | Maximum separator ARIA value. |
label | label | string | "" | Accessible aria-label for the separator. |
Events
| Event | Detail Type | Description |
|---|---|---|
mth-resize-delta | { deltaPercent?: number; deltaPx?: number; edge?: 'min' | 'max'; source: 'keyboard' | 'pointer' } | Bubbles resize deltas to parent <mth-resizable-group>. |
APG Keyboard Matrix
| Key | Direction | When | Expected Behavior |
|---|---|---|---|
| ArrowLeft | both | Horizontal handle is focused | Emits negative inline resize delta |
| ArrowRight | both | Horizontal handle is focused | Emits positive inline resize delta |
| ArrowUp | both | Vertical handle is focused | Emits negative block resize delta |
| ArrowDown | both | Vertical handle is focused | Emits positive block resize delta |
| Home | both | Handle is focused | Requests collapsing/minimizing preceding panel |
| End | both | Handle is focused | Requests maximizing preceding panel |
Accessibility Checklist
| Category | Requirement | Verified By |
|---|---|---|
| aria | All aria-* IDREFs resolve within the same DOM root (ADR-003). | scanSameRootAria |
| focus | delegatesFocus: true with zero host internals.role (ADR-014). | lint-plugin & spec-compiler |
| contrast | Renders legible borders, focus outlines, and selection indicators under forced-colors: active. | Playwright forced-colors matrix |
| keyboard | Implements all 6 APG keyboard transitions across LTR/RTL. | mth-resizable-handle.spec.test.ts |
| states | Exposes ElementInternals CustomStateSet flags: :state(disabled), :state(dragging). | Conformance suite |
| i18n | Routes 1 UI/ARIA strings through @methane-ui/core i18n catalog. | Locale context test |