1 viewer
Component · Layout
SplitPreview
cre8.primitive.split-previewTwo-pane preview grid (left visual / right info) with a static placeholder class for loading states.
- Category
- Layout
- Slots
- 3
- States
- 0
- Writer
- Shared
Preview
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.
| Slot | DOM class |
|---|---|
| root | .primitive-split-preview |
| left | — |
| right | — |
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
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.