1 viewer
Component · Layout
SplitPane
cre8.primitive.split-paneTwo 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.
- Category
- Layout
- Slots
- 3
- States
- 2
- Writer
- Legacy
Preview
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.
| Slot | DOM class |
|---|---|
| root | .cre8-split |
| pane | .cre8-split__pane |
| handle | .cre8-split__handle |
- 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
Platforms
Recipes
Renderers
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.
| Target | Renderer | Status |
|---|---|---|
| web | react | experimental |
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.