Skip to main content

Routes

Function Routes 

Source
pub fn Routes<Defs, FallbackFn, Fallback>(
    props: RoutesProps<Defs, FallbackFn, Fallback>,
) -> impl IntoView
where Defs: MatchNestedRoutes + Clone + Send + 'static, FallbackFn: FnOnce() -> Fallback + Clone + Send + 'static, Fallback: IntoView + 'static,
Expand description

§Required Props

  • fallback: [FallbackFn]
    • A function that returns the view that should be shown if no route is matched.
  • children: RouteChildren<Defs>
    • The route definitions. This should consist of one or more ParentRoute or Route components.

§Optional Props

  • transition: bool
    • Whether to use the View Transition API during navigation.