Enum leptos_dom::Class
source · Expand description
Represents the different possible values a single class on an element could have,
allowing you to do fine-grained updates to single items
in Element.classList
.
This mostly exists for the view
macro’s use. You usually won’t need to interact with it directly.
Variants§
Value(bool)
Whether the class is present.
Fn(Box<dyn Fn() -> bool>)
A (presumably reactive) function, which will be run inside an effect to toggle the class.