Fine-tune light, shadows, borders, neumorphic
Light and shadows
Borders
Neumorphic
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).

Full screen
Sidebar
Drag the bar, or focus it and use the arrow keys.

Props

<script type="module"> import '@prismora/css'; import '@prismora/elements/splitter'; </script> <pm-splitter position="35" label="Resize sidebar" style="block-size: 14rem"> <div slot="start" style="padding: 1rem">Sidebar</div> <div slot="end" style="padding: 1rem">Drag the bar, or focus it and use the arrow keys.</div> </pm-splitter>

States

Each state is one attribute.

Sidebar
Drag the bar, or focus it and use the arrow keys.
Disabled

Attributes

AttributeTypeDefaultDescription
positionnumber50Size of the first pane in percent.
minnumber10Lowest allowed value.
maxnumber90Highest allowed value.
orientation'horizontal' | 'vertical'horizontalhorizontal = side by side (vertical bar); vertical = stacked.
labelstring—Accessible name of the separator (names the first pane).
disabledbooleanfalseNot 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

EventReact / Svelte propDescription
pm-resizeonPmResizePosition changed. detail.position is the percent of the first pane.

Slots

SlotDescription
startFirst pane.
endSecond pane.