1 viewer
Component · Layout
SplitPreview
Two-pane preview grid (left visual / right info) with a static placeholder class for loading states.
- Category
- Layout
- Slots
- 3
- States
- 0
- Writer
- Legacy
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>
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
The example above still needs shared writers for: SplitPreview.
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.