invoke

operator fun ComponentBuilder.invoke(consumer: Styler.() -> Unit): ComponentBuilder

Applies the given styler to the last appended component. This operator allows for syntax like +"string" { color(RED) }.

Return

this component builder for chaining

Parameters

consumer

the styling consumer