Function leptos_router::RoutingProgress
source · pub fn RoutingProgress(props: RoutingProgressProps) -> impl IntoView
Expand description
A visible indicator that the router is in the process of navigating to another route.
This is used when <Router set_is_routing>
has been provided, to
provide some visual indicator that the page is currently loading
async data, so that it is does not appear to have frozen. It can be
styled independently.
§Required Props
- is_routing:
impl Into<Signal<bool>>
- Whether the router is currently loading the new page.
§Optional Props
- max_time:
impl Into<std::time::Duration>
- The maximum expected time for loading, which is used to calibrate the animation process.
- before_hiding:
std::time::Duration
- The time to show the full progress bar after page has loaded, before hiding it. (Defaults to 100ms.)
- class:
impl Into<String>
- CSS classes to be applied to the
<progress>
.
- CSS classes to be applied to the