Element

abstract class Element(val identity: ElementIdentity, val type: ElementType<*, *>, children: List<Element> = emptyList(), val modifier: Modifier = Modifier.Empty)(source)

Immutable description of one retained node and its direct children.

The engine owns the description snapshot after construction.

Element implementations keep local properties and provide their typed hooks through the stable Element.type token.

Constructors

Link copied to clipboard
constructor(identity: ElementIdentity, type: ElementType<*, *>, children: List<Element> = emptyList(), modifier: Modifier = Modifier.Empty)

Properties

Link copied to clipboard

detached read-only snapshot of direct child descriptions.

Link copied to clipboard

positional or keyed identity under the parent.

Link copied to clipboard

immutable active modifier descriptions applied to this component.

Link copied to clipboard

Optional typed declaration export used by remote runtimes. The default keeps existing local-only elements independent of networking.

Link copied to clipboard
val type: ElementType<*, *>

stable element-kind token.