Skip to content
1 viewer
View
Component · Layout

SplitPreview

cre8.primitive.split-preview

Two-pane preview grid (left visual / right info) with a static placeholder class for loading states.

Edit live
Category
Layout
Slots
3
States
0
Writer
Shared

Preview

Live renderShared SSR + WASM writers
fn evaluate() -> Result<Atom>
Atom evaluated with 0 warnings.
<SplitPreview leftTitle="Source Code" rightTitle="Live Evaluation">
  <Text text="fn evaluate() -> Result<Atom>" variant="code" />
  <Text text="Atom evaluated with 0 warnings." />
</SplitPreview>
Change this declaration and watch it render:open SplitPreview in the playground

Anatomy

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

SlotDOM class
root.primitive-split-preview
left—
right—
3 rows

States and platforms

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

States
No published states
Platforms
web
Recipes
unstyledruntime-console

Renderers

Shared writer
SplitPreview renders through the one writer the server and the WASM DOM share, so both emit the same markup.

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

Provides a deterministic two-pane container; consumers own the semantic content of each pane.

  • Panes carry `data-primitive-slot` markers so testing and theming can target them without leaking class names.