setVariable
Helper method for setting a StyleVariable onto a raw HTML element.
Most users will use Modifier.setVariable
instead, but there are cases where this approach can be useful, like grabbing the root element from the DOM and adding the variables onto it.
fun <T : StylePropertyValue> StyleScope.setVariable(variable: StyleVariable.PropertyValue<T>, value: T)(source)