Struct leptos_core::TransitionProps
source · pub struct TransitionProps<F, E, G>where
F: IntoChild + Clone,
E: IntoChild,
G: Fn() -> E,{
pub fallback: F,
pub set_pending: Option<SignalSetter<bool>>,
pub children: Box<dyn Fn() -> Vec<G>>,
}
Expand description
Fields§
§fallback: F
Will be displayed while resources are pending.
set_pending: Option<SignalSetter<bool>>
A function that will be called when the component transitions into or out of
the pending
state, with its argument indicating whether it is pending (true
)
or not pending (false
).
children: Box<dyn Fn() -> Vec<G>>
Will be displayed once all resources have resolved.