kvision / pl.treksoft.kvision.html / tag

tag

(js) fun Container.tag(type: TAG, content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String>? = null, className: String? = null, attributes: Map<String, String> = mapOf(), init: (Tag.() -> Unit)? = null): Tag

DSL builder extension function.

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