Function leptos_dom::class

source ·
pub fn class(cx: Scope, el: &Element, class_name: &'static str, value: Class)
Expand description

Binds the value to the class class_name on this el’s classList. If the class value is reactive, it will create an effect to make fine-grained reactive updates to the class list.

This is used by the view macro. You usually won’t need to interact with it directly.