child

fun child(component: Component, zIndex: Int = children.size, key: String? = null)

Adds a Component as a child to the Stack being initialized.