use leptos::*; use leptos_use::docs::demo_or_body; use leptos_use::{use_favicon_with_options, UseFaviconOptions}; #[component] fn Demo(cx: Scope) -> impl IntoView { let (_, set_icon) = use_favicon_with_options( cx, UseFaviconOptions::default().base_url("use_favicon/demo/img/"), ); let classes = "border border-solid border-b-4 rounded p-2 block border-gray-500/50 bg-[--bg] active:translate-y-1 active:border-b".to_string(); let img_classes = "block".to_string(); view! { cx,
"Click on an icon to change the favicon"
} } fn main() { _ = console_log::init_with_level(log::Level::Debug); console_error_panic_hook::set_once(); mount_to(demo_or_body(), |cx| { view! { cx,