Component · Layout
RoomScope
Inert SSR wrapper that places a view region inside an ephemeral live room.
- Category
- Layout
- Slots
- 4
- States
- 3
- Writer
- Shared
Preview
1 viewer
Room content with presence and cursor projection.
<RoomScope
liveViewers={true}
roomId="component-room-preview"
sharedCursors={true}
transport="broadcast"
viewId="view.components.RoomScope"
>
<Text
text="Room content with presence and cursor projection."
variant="p"
/>
</RoomScope>Anatomy
The named parts of the rendered markup. Recipes style these hooks, and every renderer keeps them stable.
| Slot | DOM class |
|---|---|
| root | .primitive-room-scope |
| body | — |
| viewerCount | — |
| cursorLayer | — |
| cursor | .primitive-room-scope__cursor |
| cursor-layer | .primitive-room-scope__cursor-layer |
| viewers | .primitive-room-scope__viewers |
- State attribute
- data-cre8-room-scopefrom the enabled prop
- Hydration markers
- data-cre8-room-scope
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 |
| runtime-node | view-node | ready |
| ssr | html-semantic | ready |
| terminal | terminal-layout | planned |
| native | native-adapter | experimental |
Accessibility
Semantic structure must stay available without visual styling.
- Expose meaningful names for interactive controls.
- Keep keyboard and pointer behavior equivalent where the platform supports it.
- Publish state with native semantics and data attributes where the adapter supports them.