Display
Splitter <pm-splitter>
Resizable split view (window splitter pattern). Two panes, a draggable separator with arrow-key support (±1%, Shift ±10%, Home/End to the limits, Enter to collapse/restore).
Sidebar
Drag the bar, or focus it and use the arrow keys.
States
Each state is one attribute.
Sidebar
Drag the bar, or focus it and use the arrow keys.
DisabledAttributes
| Attribute | Type | Default | Description |
|---|---|---|---|
position | number | 50 | Size of the first pane in percent. |
min | number | 10 | Lowest allowed value. |
max | number | 90 | Highest allowed value. |
orientation | 'horizontal' | 'vertical' | horizontal | horizontal = side by side (vertical bar); vertical = stacked. |
label | string | — | Accessible name of the separator (names the first pane). |
disabled | boolean | false | Not interactive (and not submitted, for form controls). |
Also accepts the contextual attributes tone, surface, radius, density, motion, elevation. They are inherited from ancestors' data-* attributes.
Events
| Event | React / Svelte prop | Description |
|---|---|---|
pm-resize | onPmResize | Position changed. detail.position is the percent of the first pane. |
Slots
| Slot | Description |
|---|---|
start | First pane. |
end | Second pane. |