leptos_use::math
Reactive AND condition.
AND
A
B
A && B
use leptos::prelude::*; use leptos_use::math::use_and; #[component] fn Demo() -> impl IntoView { let (a, set_a) = signal(true); let (b, set_b) = signal(false); let a_and_b = use_and(a, b); view! { } }
This function is only available if the crate feature math is enabled
math
Source • Demo • Docs