Node
data class Node(val type: String, val props: NodeProps? = null, val children: List<ChildNode>? = null, val extras: Map<String, <Error class: unknown class>> = emptyMap()) : Map<String, <Error class: unknown class>>
A node in the layout tree. The Map view exposes extras only — unknown keys sitting next to type/props/children — so node["custom-key"] reads a custom attribute while the reserved keys stay typed (type, props, children).
Parameters
type
element type: a built-in (div, img, p, h1–h6, span) or a custom component type string the renderer registers a component for.
props
this node's prop object, or null when absent.
children
child nodes, or null when absent (distinct from an empty list).
extras
unknown sibling keys preserved verbatim; must not contain a reserved key.
Throws
IllegalArgumentException
if extras contains any of type, props, children.