use leptos::html::Div;
use leptos::*;
use leptos_use::docs::demo_or_body;
use leptos_use::{use_css_var_with_options, UseCssVarOptions};
#[component]
fn Demo(cx: Scope) -> impl IntoView {
let el = create_node_ref::
(cx);
let (color, set_color) =
use_css_var_with_options(cx, "--color", UseCssVarOptions::default().target(el));
let switch_color = move |_| {
if color.get() == "#df8543" {
set_color.set("#7fa998".to_string());
} else {
set_color.set("#df8543".to_string());
}
};
let elv = create_node_ref::