Closed hrzlgnm closed 4 days ago
Something along with
let loading = create_rw_signal(false); let on_click = move |_| { loading.set(true); set_timeout( move || { loading.set(false); }, std::time::Duration::new(2, 0), ); }; view! { <Space> <Button loading on_click icon=icondata::AiCloseOutlined> "Click Me" </Button> <Button loading on_click> "Click Me" </Button> </Space> }
Also reduce the timeout to 5s
Something along with