use leptos::*; use leptos_use::docs::{demo_or_body, BooleanDisplay, Note}; use leptos_use::use_element_visibility; #[component] fn Demo(cx: Scope) -> impl IntoView { let el = create_node_ref(cx); let is_visible = use_element_visibility(cx, el); view! { cx,