use leptos::*; use leptos_use::docs::{demo_or_body, Note}; use leptos_use::use_window_scroll; #[component] fn Demo() -> impl IntoView { let (x, y) = use_window_scroll(); let div = document().create_element("div").unwrap(); div.set_attribute( "style", "position: absolute; top: 100%; left: 100%; width: 10000px; height: 10000px;", ) .unwrap(); document().body().unwrap().append_child(&div).unwrap(); view! {