ResolvedChild

sealed interface ResolvedChild

A single entry in a node's resolved child list.

Each source child becomes either a TextRun (string/numeric child) or an ElementChild (nested element). Null children present in the source are dropped during resolution and never appear here, matching the React renderer. Carried by ResolvedNode.children; sibling order is preserved.

Inheritors

Types

Link copied to clipboard
data class ElementChild(val node: ResolvedNode) : ResolvedChild

A nested resolved element child.

Link copied to clipboard
data class TextRun(val text: String, val inheritedText: TextContext) : ResolvedChild

A run of literal text between/within elements.