Skip to Content
API ReferenceLeafElement

LeafElement

Base class for leaf elements that have no children and produce rendered output. Use this for elements that map directly to visual components such as text labels, images, or interactive controls.

Constructor

LeafElement

Creates a new leaf element with an optional key.

ParameterDescription
keyAn optional key for reconciliation identity.
Last updated on