leptos_use

Function use_css_var_with_options

Source
pub fn use_css_var_with_options<P, El, T>(
    prop: P,
    options: UseCssVarOptions<El, T>,
) -> (ReadSignal<String>, WriteSignal<String>)
where P: Into<MaybeSignal<String>>, El: Clone + Into<ElementMaybeSignal<T, Element>>, T: Into<Element> + Clone + 'static,
Expand description

Version of use_css_var that takes a UseCssVarOptions. See use_css_var for how to use.