attr

fun AttrsScope<*>.attr(attr: String, value: Boolean = true): AttrsScope<Element>(source)

Adds an attribute that is made present by its key aka attr.

See also

AttrsScope.attr

fun AttrsScope<*>.attr(attr: String, value: Int): AttrsScope<Element>(source)

Int attributes are used in Compose HTML. See org.jetbrains.compose.web.attributes.maxLength for example.


fun AttrsScope<*>.attr(attr: String, value: Number): AttrsScope<Element>(source)