icon

fun Container.icon(icon: String, init: Icon.() -> Unit? = null): Icon

DSL builder extension function.

It takes the same parameters as the constructor of the built component.

fun <S> Container.icon(state: ObservableState<S>, icon: String, init: Icon.(S) -> Unit): Icon

DSL builder extension function for observable state.

It takes the same parameters as the constructor of the built component.