use leptos::*;
use leptos_use::docs::{demo_or_body, Note};
use leptos_use::use_active_element;
#[component]
fn Demo(cx: Scope) -> impl IntoView {
let active_element = use_active_element(cx);
let key = move || {
format!(
"{:?}",
active_element()
.map(|el| el.dataset().get("id"))
.unwrap_or_default()
)
};
view! { cx,