Skip to content
1 viewer
View
Component · Layout

SplitPane

cre8.primitive.split-pane

Two panes and a draggable, keyboard-resizable separator. The trailing pane is sized; the shared split-pane script binds every data-cre8-split root. Built by SplitPaneBuilder from bare elements.

Edit live
Category
Layout
Slots
3
States
2
Writer
Legacy

Preview

Live renderShared SSR + WASM writers
Source bufferRendered preview
<Section
  bare={true}
  className="cre8-split cre8-split--x"
  data-cre8-split="x"
  data-min-remaining={300}
  data-min-size={100}
  data-ratio="0.400"
  element="div"
  style={{ "--split-ratio": "0.400" }}
>
  <Text
    className="cre8-split__pane"
    data-cre8-split-pane="leading"
    text="Source buffer"
  />
  <Section
    aria-description="Drag or use the arrow keys to resize. Enter or double-click resets."
    aria-label="Resize preview"
    aria-orientation="vertical"
    bare={true}
    className="cre8-split__handle"
    data-cre8-split-handle={true}
    element="div"
    role="separator"
    tabIndex={0}
  />
  <Text
    className="cre8-split__pane"
    data-cre8-split-pane="trailing"
    text="Rendered preview"
  />
</Section>
Change this declaration and watch it render:open SplitPane in the playground

Anatomy

The named parts of the rendered markup. Recipes style these hooks, and every renderer keeps them stable.

SlotDOM class
root.cre8-split
pane.cre8-split__pane
handle.cre8-split__handle
3 rows
Modifier
cre8-split--{axis}
Hydration markers
data-cre8-split, data-cre8-split-handle

States and platforms

The states the contract publishes, the platforms it declares, and the style recipes that dress it.

States
opencollapsed
Platforms
web
Recipes
unstyledruntime-console

Renderers

Legacy writer
SplitPane has no shared writer yet: the server renders it through its legacy path, which the WASM DOM does not share.

Every tag in the example above renders through a shared writer.

Declared adapters. A status is the manifest's declaration, not a measured parity result.

TargetRendererStatus
webreactexperimental
1 row

Accessibility

The handle is a focusable role=separator that reports its size through aria-value attributes.

  • The handle carries aria-label and an aria-orientation across the split axis.
  • Arrow keys, Home, End and Enter resize from the keyboard; collapsing hides the handle with the pane.