use leptos::*; use leptos_use::docs::demo_or_body; use leptos_use::{use_favicon_with_options, UseFaviconOptions}; #[component] fn Demo() -> impl IntoView { let (_, set_icon) = use_favicon_with_options(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! {

"Click on an icon to change the favicon"

favicon-red favicon-red favicon-green favicon-blue favicon-orange

} } fn main() { _ = console_log::init_with_level(log::Level::Debug); console_error_panic_hook::set_once(); mount_to(demo_or_body(), || { view! { } }) }